Page MenuHomeDevCentral
Paste P196

Server block for login.nasqueron.org
ActivePublic

Authored by dereckson on Jun 2 2016, 04:35.
# Force a redirection from http:// to https://
server {
listen 80;
listen [::]:80;
server_name login.nasqueron.org;
include letsencrypt;
return 301 https://$host$request_uri;
}
server {
server_name login.nasqueron.org;
include ssl_params;
ssl_certificate /data/letsencrypt/etc/live/login.nasqueron.org/fullchain.pem;
ssl_certificate_key /data/letsencrypt/etc/live/login.nasqueron.org/privkey.pem;
# Docker container: login
include proxy_params;
location / { proxy_pass http://localhost:25080; }
# 502 error
root /var/wwwroot-502/$server_name;
error_page 502 /502.html;
location /502.html {}
}