32 lines
927 B
Plaintext
32 lines
927 B
Plaintext
server {
|
|
listen 80;
|
|
server_name landingtqo.spottorg.ru;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name landingtqo.spottorg.ru;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/spottorg.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/spottorg.ru/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/spottorg.ru/chain.pem;
|
|
|
|
client_max_body_size 10m;
|
|
|
|
access_log /var/log/nginx/landingtqo.spottorg.ru_access.log json;
|
|
error_log /var/log/nginx/landingtqo.spottorg.ru_error.log;
|
|
|
|
location / {
|
|
proxy_pass http://landing:80;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
chunked_transfer_encoding off;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
}
|
|
}
|