Created
November 15, 2019 14:20
-
-
Save DrDanL/19534afc28111e1e617ba7f764a3886d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name kcmhr.org www.kcmhr.org; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
# SSL configuration | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
ssl on; | |
ssl_certificate /etc/ssl/certs/cert.pem; | |
ssl_certificate_key /etc/ssl/private/key.pem; | |
server_name kcmhr.org www.kcmhr.org; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://127.0.0.1:2368; | |
} | |
location ~ /.well-known { | |
allow all; | |
} | |
location /vmhc2019/ { | |
alias /var/www/vmhc2019/; | |
} | |
location /vmhc2020/ { | |
alias /var/www/vmhc2020/; | |
} | |
location /pdf/ { | |
alias /var/www/pdf/; | |
} | |
client_max_body_size 5M; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment