Deployment > nginx
Config of NGINX as reverse proxy
Open confix on the following path: /etc/nginx/sites-enabled
:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
ssl_certificate /etc/ssl/paletter.front/paletter.dev.crt;
ssl_certificate_key /etc/ssl/paletter.front/ssl-paletter.key;
server_name paletter.dev;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:3000;
}
}