Spaces:
Paused
Paused
| worker_processes 1; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /run/nginx.pid; | |
| events { worker_connections 1024; } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| access_log /var/log/nginx/access.log; | |
| sendfile on; | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen 7860; | |
| server_name _; | |
| root /home/user/web; | |
| index index.html; | |
| # Homebase landing | |
| location / { | |
| try_files $uri $uri/ =404; | |
| } | |
| # Live web terminal (ttyd on 7681) | |
| location /terminal/ { | |
| proxy_pass http://127.0.0.1:7681/; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection $connection_upgrade; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_read_timeout 86400; | |
| } | |
| } | |
| } | |