37 lines
841 B
Nginx Configuration File
37 lines
841 B
Nginx Configuration File
|
server {
|
||
|
if ($host = sh4r.in) {
|
||
|
return 301 https://$host$request_uri;
|
||
|
} # managed by Certbot
|
||
|
|
||
|
listen 80;
|
||
|
|
||
|
server_name sh4r.in;
|
||
|
return 301 https://sh4r.in/;
|
||
|
|
||
|
|
||
|
}
|
||
|
server{
|
||
|
listen 443 ssl http2;
|
||
|
|
||
|
server_name sh4r.in;
|
||
|
|
||
|
client_max_body_size 128M;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://127.0.0.1:3000/;
|
||
|
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;
|
||
|
proxy_buffering off;
|
||
|
}
|
||
|
|
||
|
ssl_session_cache shared:SSL:1m;
|
||
|
|
||
|
ssl_ciphers HIGH:!aNULL:!MD5:!RC4;
|
||
|
ssl_prefer_server_ciphers on;
|
||
|
|
||
|
ssl_certificate /etc/letsencrypt/live/sh4r.in/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/sh4r.in/privkey.pem;
|
||
|
}
|