32 lines
812 B
Plaintext
32 lines
812 B
Plaintext
server {
|
|
listen 80;
|
|
server_name testcadmin.dot-dot.ru;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl ;
|
|
server_name testcadmin.dot-dot.ru;
|
|
|
|
ssl_certificate /etc/nginx/ssl/dot-dot.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/dot-dot.key;
|
|
|
|
client_max_body_size 10m;
|
|
|
|
access_log /var/log/nginx/testcadmin.dot-dot.ru_access.log json;
|
|
error_log /var/log/nginx/testcadmin.dot-dot.ru_error.log;
|
|
|
|
location / {
|
|
proxy_pass https://admin:443;
|
|
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;
|
|
}
|
|
|
|
}
|