19 lines
No EOL
548 B
Nginx Configuration File
19 lines
No EOL
548 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
ssl_certificate /etc/nginx/certs/localhost/localhost.cert.pem;
|
|
ssl_certificate_key /etc/nginx/certs/localhost/localhost.key.pem;
|
|
ssl_trusted_certificate /etc/nginx/certs/localhost/localhost.fullchain.pem;
|
|
|
|
location / {
|
|
proxy_pass http://app:3000;
|
|
|
|
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;
|
|
}
|
|
} |