39 lines
872 B
Plaintext
39 lines
872 B
Plaintext
server {
|
|
listen 80;
|
|
server_name www.svc.plus frontend.svc.plus;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name www.svc.plus frontend.svc.plus;
|
|
|
|
ssl_certificate /etc/ssl/svc.plus.pem;
|
|
ssl_certificate_key /etc/ssl/svc.plus.rsa.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location ^~ /_next/ {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /favicon.ico {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location ~ /\. {
|
|
deny all;
|
|
}
|
|
}
|