add staging

This commit is contained in:
Alex Holliday committed 2026-04-17 19:20:31 +00:00
1 parent 4493cca871
commit 29ea54419c
2 files changed
+25 -23

No files matched your search

+3
View File
@@ -1,3 +1,6 @@
# sudo certbot certonly --standalone --http-01-port 8080
# cerbot needs to run on 8080 since port 80 is used by the gateway
services: services:
# Gateway (Single Entry Point) # Gateway (Single Entry Point)
gateway: gateway:
+22 -23
View File
@@ -3,16 +3,23 @@ proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
# --- PRODUCTION: demo.checkmate.so ---
server { server {
listen 80; listen 80;
server_name demo.checkmate.so; server_name demo.checkmate.so staging.checkmate.so;
location /.well-known/acme-challenge/ {
# Forward the challenge to Certbot listening on 8080
proxy_pass http://172.17.0.1:8080;
}
location / { location / {
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
} }
# --- PRODUCTION: demo.checkmate.so ---
server { server {
listen 443 ssl; listen 443 ssl;
server_name demo.checkmate.so; server_name demo.checkmate.so;
@@ -30,27 +37,19 @@ server {
} }
# --- STAGING: staging.checkmate.so --- # --- STAGING: staging.checkmate.so ---
# server {
# listen 80;
# server_name staging.checkmate.so;
# location / {
# return 301 https://$host$request_uri;
# }
# }
# server { server {
# listen 443 ssl; listen 443 ssl;
# server_name staging.checkmate.so; server_name staging.checkmate.so;
# ssl_certificate /etc/nginx/ssl/live/staging.checkmate.so/fullchain.pem; ssl_certificate /etc/nginx/ssl/live/staging.checkmate.so/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/live/staging.checkmate.so/privkey.pem; ssl_certificate_key /etc/nginx/ssl/live/staging.checkmate.so/privkey.pem;
# ssl_protocols TLSv1.2 TLSv1.3; ssl_protocols TLSv1.2 TLSv1.3;
# ssl_ciphers HIGH:!aNULL:!MD5; ssl_ciphers HIGH:!aNULL:!MD5;
# location / { location / {
# # Passes traffic to the staging client on port 80 # Passes traffic to the staging client on port 80
# proxy_pass http://client-stage:80; proxy_pass http://client-staging:80;
# } }
# } }