server {
listen 8080;
server_name site.dev;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_http_version 1.1;
if($cookie_connect.sid)
{
proxy_pass http://site.dev:80;
}
if($http_cookie !~ "connect.sid")
{
proxy_pass http://site.dev:8080;
}
}
}
body {
font-family: "RobotoRegular", sans-serif;
font-size: 16px;
background-color:#666666;
}
.registration {
margin-top:300px;
}
.registration h3 , .registration p {
text-align:center;
color:#fff;
}
form {
width: 200px;
margin: 0 auto;
background: #f0f0f0;
}
.registration input {
margin:0 0 10px 0;
display:block;
}
.registration button {
display:block;
}
<div><img src=картинка.пнг></div>
div {
overflow: hidden;
width: 250px;
height: 250px;
}
img {
height:100%;
}