Files
Termix/docker/nginx.conf
T

369 lines
13 KiB
Nginx Configuration File
Raw Normal View History

+1
2025-12-31 22:20:12 -06:00
pid /app/nginx/nginx.pid;
error_log /app/nginx/logs/error.log warn;
2025-08-07 02:20:27 -05:00
events {
worker_connections 1024;
}
http {
+1
2025-12-31 22:20:12 -06:00
include /etc/nginx/mime.types;
2025-08-07 02:20:27 -05:00
default_type application/octet-stream;
+1
2025-12-31 22:20:12 -06:00
access_log /app/nginx/logs/access.log;
client_body_temp_path /app/nginx/client_body;
proxy_temp_path /app/nginx/proxy_temp;
fastcgi_temp_path /app/nginx/fastcgi_temp;
uwsgi_temp_path /app/nginx/uwsgi_temp;
scgi_temp_path /app/nginx/scgi_temp;
2025-08-07 02:20:27 -05:00
sendfile on;
keepalive_timeout 65;
2025-10-01 15:40:10 -05:00
client_header_timeout 300s;
2025-10-06 10:11:25 -05:00
set_real_ip_from 127.0.0.1;
real_ip_header X-Forwarded-For;
2025-10-01 15:40:10 -05:00
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
2025-08-07 02:20:27 -05:00
server {
listen ${PORT};
server_name localhost;
2025-10-01 15:40:10 -05:00
add_header X-Content-Type-Options nosniff always;
add_header X-XSS-Protection "1; mode=block" always;
+7
2025-11-05 10:36:16 -06:00
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
+1
2025-12-31 22:20:12 -06:00
root /app/html;
+7
2025-11-05 10:36:16 -06:00
expires 1y;
add_header Cache-Control "public, immutable";
try_files $uri =404;
}
2025-08-07 02:20:27 -05:00
location / {
+1
2025-12-31 22:20:12 -06:00
root /app/html;
2025-08-07 02:20:27 -05:00
index index.html index.htm;
+7
2025-11-05 10:36:16 -06:00
try_files $uri $uri/ /index.html;
2025-08-07 02:20:27 -05:00
}
2025-10-01 15:40:10 -05:00
location ~* \.map$ {
return 404;
access_log off;
log_not_found off;
}
+7
2025-11-05 10:36:16 -06:00
location ~ ^/users/sessions(/.*)?$ {
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
}
2025-09-12 14:42:00 -05:00
location ~ ^/users(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-07 02:20:27 -05:00
proxy_http_version 1.1;
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;
}
2025-09-12 14:42:00 -05:00
location ~ ^/version(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-08 01:20:58 -05:00
proxy_http_version 1.1;
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;
}
2025-09-12 14:42:00 -05:00
location ~ ^/releases(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-08 01:20:58 -05:00
proxy_http_version 1.1;
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;
}
2025-09-12 14:42:00 -05:00
location ~ ^/alerts(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-09-12 14:42:00 -05:00
proxy_http_version 1.1;
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;
}
+1
2025-12-31 22:20:12 -06:00
location ~ ^/rbac(/.*)?$ {
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
}
2025-09-12 14:42:00 -05:00
location ~ ^/credentials(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
}
+7
2025-11-05 10:36:16 -06:00
location ~ ^/snippets(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
+7
2025-11-05 10:36:16 -06:00
}
2025-11-17 09:46:05 -06:00
location ~ ^/terminal(/.*)?$ {
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
}
+7
2025-11-05 10:36:16 -06:00
location ~ ^/database(/.*)?$ {
client_max_body_size 5G;
client_body_timeout 300s;
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
2025-10-01 15:40:10 -05:00
proxy_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_request_buffering off;
proxy_buffering off;
}
location ~ ^/db(/.*)?$ {
client_max_body_size 5G;
client_body_timeout 300s;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_request_buffering off;
proxy_buffering off;
}
location ~ ^/encryption(/.*)?$ {
proxy_pass http://127.0.0.1:30001;
proxy_http_version 1.1;
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;
}
2025-08-13 01:44:40 -05:00
location /ssh/ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-12 14:38:01 -05:00
proxy_http_version 1.1;
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;
}
2025-08-07 02:20:27 -05:00
location /ssh/websocket/ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30002/;
2025-08-07 02:20:27 -05:00
proxy_http_version 1.1;
2025-10-01 15:40:10 -05:00
2025-08-07 02:20:27 -05:00
proxy_set_header Upgrade $http_upgrade;
2025-10-01 15:40:10 -05:00
proxy_set_header Connection "upgrade";
2025-08-07 02:20:27 -05:00
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
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;
2025-10-01 15:40:10 -05:00
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_connect_timeout 10s;
proxy_buffering off;
proxy_request_buffering off;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
2025-08-07 02:20:27 -05:00
}
location /ssh/tunnel/ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30003;
2025-08-07 02:20:27 -05:00
proxy_http_version 1.1;
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;
}
2025-08-18 00:38:38 -05:00
location /ssh/file_manager/recent {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-18 00:38:38 -05:00
proxy_http_version 1.1;
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;
}
location /ssh/file_manager/pinned {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-18 00:38:38 -05:00
proxy_http_version 1.1;
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;
}
location /ssh/file_manager/shortcuts {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-08-18 00:38:38 -05:00
proxy_http_version 1.1;
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;
}
location /ssh/file_manager/ssh/ {
2025-10-01 15:40:10 -05:00
client_max_body_size 5G;
client_body_timeout 300s;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30004;
2025-08-07 02:20:27 -05:00
proxy_http_version 1.1;
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;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
+7
2025-11-05 10:36:16 -06:00
2025-10-01 15:40:10 -05:00
proxy_request_buffering off;
proxy_buffering off;
2025-08-07 02:20:27 -05:00
}
2025-09-12 14:42:00 -05:00
location /health {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30001;
2025-09-12 14:42:00 -05:00
proxy_http_version 1.1;
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;
}
location ~ ^/status(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30005;
proxy_http_version 1.1;
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;
}
2025-09-12 14:42:00 -05:00
location ~ ^/metrics(/.*)?$ {
2025-10-01 15:40:10 -05:00
proxy_pass http://127.0.0.1:30005;
2025-08-18 00:38:38 -05:00
proxy_http_version 1.1;
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;
+1
2025-12-31 22:20:12 -06:00
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
2025-08-18 00:38:38 -05:00
}
+7
2025-11-05 10:36:16 -06:00
location ~ ^/uptime(/.*)?$ {
proxy_pass http://127.0.0.1:30006;
proxy_http_version 1.1;
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;
}
location ~ ^/activity(/.*)?$ {
proxy_pass http://127.0.0.1:30006;
proxy_http_version 1.1;
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;
}
+1
2025-12-31 22:20:12 -06:00
location ^~ /docker/console/ {
proxy_pass http://127.0.0.1:30008/;
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;
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;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_connect_timeout 10s;
proxy_buffering off;
proxy_request_buffering off;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
}
location ~ ^/docker(/.*)?$ {
proxy_pass http://127.0.0.1:30007;
proxy_http_version 1.1;
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;
proxy_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
}
2025-08-07 02:20:27 -05:00
error_page 500 502 503 504 /50x.html;
location = /50x.html {
+1
2025-12-31 22:20:12 -06:00
root /app/html;
2025-08-07 02:20:27 -05:00
}
}
+7
2025-11-05 10:36:16 -06:00
}