Initial commit

This commit is contained in:
Robert Partridge 2022-07-14 04:05:25 -04:00
parent 212f0c895f
commit de65898834
2 changed files with 46 additions and 0 deletions

21
config/example Normal file
View File

@ -0,0 +1,21 @@
server {
listen 80;
listen 443 ssl http2 ;
# server_name www.yourdomain.ext yourdomain.ext;
# ssl_certificate /etc/letsencrypt/live/yourdomain.ext/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.ext/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
add_header Strict-Transport-Security "max-age=31536000";
location / {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_headers on;
# proxy_pass http://localhost:####;
# proxy_pass http://###.###.###.###:####;
}
}

View File

@ -0,0 +1,25 @@
server {
listen 80;
# server_name www.yourdomain.ext yourdomain.ext;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2 ;
# server_name www.yourdomain.ext yourdomain.ext;
# ssl_certificate /etc/letsencrypt/live/yourdomain.ext/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.ext/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
add_header Strict-Transport-Security "max-age=31536000";
location / {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_headers on;
# proxy_pass http://localhost:####;
# proxy_pass http://###.###.###.###:####;
}
}