mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name your.domain.com;
|
|
|
|
return 302 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 default_server ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name your.domain.com;
|
|
|
|
ssl_certificate /etc/ssl/cert.pem;
|
|
ssl_certificate_key /etc/ssl/cert.key;
|
|
|
|
location /api {
|
|
proxy_set_header X-Real-RIP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
|
|
proxy_pass http://backend:4000;
|
|
proxy_redirect off;
|
|
|
|
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
|
}
|
|
|
|
location / {
|
|
include /etc/nginx/mime.types;
|
|
|
|
proxy_set_header X-Real-RIP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_pass http://frontend:3000;
|
|
proxy_redirect off;
|
|
}
|
|
} |