44 lines
1.1 KiB
Nginx Configuration File
44 lines
1.1 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
|
|
include /etc/nginx/default.d/*.conf;
|
|
|
|
error_page 404 /404.html;
|
|
location = /404.html {
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://host.docker.internal:3000;
|
|
proxy_read_timeout 60;
|
|
proxy_connect_timeout 60;
|
|
proxy_redirect off;
|
|
}
|
|
location /api {
|
|
proxy_pass http://host.docker.internal:8000;
|
|
proxy_read_timeout 60;
|
|
proxy_connect_timeout 60;
|
|
proxy_redirect off;
|
|
}
|
|
location /socket.io {
|
|
proxy_pass http://host.docker.internal:5000;
|
|
proxy_read_timeout 60;
|
|
proxy_connect_timeout 60;
|
|
proxy_redirect off;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
location /companylink {
|
|
return 301 https://oktopus.app.br/controller;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
}
|
|
} |