63 lines
1.2 KiB
Plaintext
63 lines
1.2 KiB
Plaintext
listen 443 ssl http2;
|
|
|
|
include /etc/nginx/conf.d/include/ssl-settings;
|
|
include /etc/nginx/conf.d/include/init-optional-variables;
|
|
|
|
# Uncomment to launch new Dashboard under /v2 path
|
|
# location /v2 {
|
|
# proxy_pass http://dashboard-v2:9000;
|
|
# }
|
|
|
|
location / {
|
|
proxy_pass http://dashboard:3000;
|
|
}
|
|
|
|
location /health {
|
|
proxy_pass http://accounts:3000;
|
|
}
|
|
|
|
location /stripe/webhook {
|
|
proxy_pass http://accounts:3000;
|
|
}
|
|
|
|
location /api/stripe/billing {
|
|
proxy_pass http://dashboard:3000;
|
|
}
|
|
|
|
location /api/stripe/checkout {
|
|
proxy_pass http://dashboard:3000;
|
|
}
|
|
|
|
location /api {
|
|
rewrite /api/(.*) /$1 break;
|
|
proxy_pass http://accounts:3000;
|
|
}
|
|
|
|
location /api/register {
|
|
include /etc/nginx/conf.d/include/cors;
|
|
|
|
rewrite /api/(.*) /$1 break;
|
|
proxy_pass http://accounts:3000;
|
|
}
|
|
|
|
location /api/user/pubkey/register {
|
|
include /etc/nginx/conf.d/include/cors;
|
|
|
|
rewrite /api/(.*) /$1 break;
|
|
proxy_pass http://accounts:3000;
|
|
}
|
|
|
|
location /api/login {
|
|
include /etc/nginx/conf.d/include/cors;
|
|
|
|
rewrite /api/(.*) /$1 break;
|
|
proxy_pass http://accounts:3000;
|
|
}
|
|
|
|
location /api/logout {
|
|
include /etc/nginx/conf.d/include/cors;
|
|
|
|
rewrite /api/(.*) /$1 break;
|
|
proxy_pass http://accounts:3000;
|
|
}
|