configurations/Nginx/Server Blocks/loc.sh.conf

28 lines
649 B
Plaintext
Raw Normal View History

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name loc.sh;
2021-05-01 15:13:49 -04:00
ssl_certificate /etc/letsencrypt/live/loc.sh-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/loc.sh-0001/privkey.pem; # managed by Certbot
location / {
2021-05-01 15:13:49 -04:00
proxy_set_header Host $host;
2021-05-01 15:13:49 -04:00
proxy_set_header X-Real-IP $remote_addr;
2021-05-01 15:13:49 -04:00
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2021-05-01 15:13:49 -04:00
proxy_set_header X-Forwarded-Proto $scheme;
2021-05-01 15:13:49 -04:00
proxy_pass http://localhost:3890;
2021-05-01 15:13:49 -04:00
proxy_read_timeout 90;
2021-05-01 15:13:49 -04:00
proxy_redirect http://localhost:3890 https://loc.sh;
2021-05-01 15:13:49 -04:00
}
2021-05-01 15:13:49 -04:00
}