Serve the site over HTTPS with self signed certificates

This commit is contained in:
2026-08-10 13:34:14 -04:00
parent 404a35e1b1
commit f002c1416c
7 changed files with 357 additions and 2 deletions
+49
View File
@@ -0,0 +1,49 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
ssl_certificate /etc/nginx/certs/pistation.crt;
ssl_certificate_key /etc/nginx/certs/pistation.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:pistation:4m;
client_max_body_size 0;
proxy_http_version 1.1;
proxy_set_header Host $http_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 https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 1h;
proxy_send_timeout 1h;
server {
listen 3443 ssl;
http2 on;
server_name _;
location / {
proxy_pass http://web:3000;
}
}
server {
listen 8443 ssl;
http2 on;
server_name _;
location / {
proxy_pass http://server:8080;
}
}
server {
listen 7443 ssl;
server_name _;
location / {
proxy_pass http://host.docker.internal:7880;
}
}