Server & Nginx
Server
- OS: Windows Server 2022
- IP: 81.171.31.130
- Access: SSH as
administrator
Nginx
- Location:
C:\tools\nginx-1.29.4 - Config:
C:\tools\nginx-1.29.4\conf\nginx.conf - Reload:
cd C:\tools\nginx-1.29.4 && nginx.exe -s reload
Nginx handles SSL termination and reverse proxying for all services. Each service gets its own server block with SSL certificates stored in C:\nginx-ssl\.
SSL Certificates
Managed via win-acme with ACME challenge root at C:/win-acme/wwwroot.
Key Configuration Patterns
# Standard reverse proxy pattern
location / {
proxy_pass http://127.0.0.1:{PORT};
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;
}
For OAuth services (Superset), increase proxy buffer size:
proxy_buffer_size 32k;
proxy_buffers 8 32k;
proxy_busy_buffers_size 32k;