Services:Configuration Options
Appearance
This document describes advanced configuration options for services.
Custom Timeouts
For services that need longer timeouts:
proxy_read_timeout 600s; # 10 minutes proxy_connect_timeout 75s; proxy_send_timeout 600s;
WebSocket Support
For WebSocket applications (already included in template):
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
Custom Headers
Some services require specific headers. Add them in the location block:
proxy_set_header X-Custom-Header "value"; proxy_set_header Authorization $http_authorization;
Buffer Settings
For large file uploads or downloads:
client_max_body_size 100M; proxy_buffering off;
Bypass SSL Verification (Internal HTTPS)
If your internal service uses self-signed certificates:
proxy_ssl_verify off; proxy_ssl_trusted_certificate /path/to/ca.crt;
Warning: Only use this for internal services, never for external connections.
Related Documentation
- [Step-by-Step Process](step-by-step.md) - Basic setup
- [Service Examples](service-examples.md) - Example configurations