You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
800 B
29 lines
800 B
upstream pensfond {
|
|
server localhost:32770;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name p-fond.ru www.p-fond.ru;
|
|
return 301 https://$sqerver_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
client_max_body_size 175M;
|
|
listen 0.0.0.0:443 ssl;
|
|
server_name p-fond.ru www.p-fond.ru;
|
|
|
|
ssl_certificate /opt/apps/pensfond/conf/ssl-keys/pensfond.org.crt;
|
|
ssl_certificate_key /opt/apps/pensfond/conf/ssl-keys/pensfond.org.key;
|
|
add_header Strict-Transport-Security 'max-age=604800';
|
|
|
|
location / {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
|
|
proxy_pass http://mirmebeli/;
|
|
proxy_redirect off;
|
|
}
|
|
} |