2025-04-20 11:29:53 -07:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
|
|
server_name checkmate-demo.bluewavelabs.ca;
|
|
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
|
root /var/www/certbot;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api/ {
|
2025-05-09 09:33:35 -07:00
|
|
|
proxy_pass http://server:52345/api/;
|
2025-04-20 11:29:53 -07:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $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 $scheme;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api-docs/ {
|
2025-05-09 09:33:35 -07:00
|
|
|
proxy_pass http://server:52345/api-docs/;
|
2025-04-20 11:29:53 -07:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $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 $scheme;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
listen 443 default_server ssl http2;
|
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
|
|
server_name checkmate-demo.bluewavelabs.ca;
|
|
|
|
|
|
2026-04-17 17:34:23 +00:00
|
|
|
ssl_certificate /etc/nginx/ssl/live/demo.checkmate.so/fullchain.pem;
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/live/demo.checkmate.so/privkey.pem;
|
2025-04-20 11:29:53 -07:00
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api/ {
|
2025-05-09 09:33:35 -07:00
|
|
|
proxy_pass http://server:52345/api/;
|
2025-04-20 11:29:53 -07:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $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 $scheme;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api-docs/ {
|
2025-05-09 09:33:35 -07:00
|
|
|
proxy_pass http://server:52345/api-docs/;
|
2025-04-20 11:29:53 -07:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $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 $scheme;
|
|
|
|
|
}
|
|
|
|
|
}
|