Jump to content

Services:Configuration Options

From jb-vpn.uk Wiki
Revision as of 13:44, 1 January 2026 by Josh (talk | contribs) (Minor update - configuration guide: Configuration Options (6 sections) (configuration))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This document describes advanced configuration options for services.

Custom Timeouts

[edit]

For services that need longer timeouts:

proxy_read_timeout 600s;      # 10 minutes
proxy_connect_timeout 75s;
proxy_send_timeout 600s;

WebSocket Support

[edit]

For WebSocket applications (already included in template):

proxy_set_header Upgrade $http_upgrade; 
proxy_set_header Connection "upgrade";

Custom Headers

[edit]

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

[edit]

For large file uploads or downloads:

client_max_body_size 100M;
proxy_buffering off;

Bypass SSL Verification (Internal HTTPS)

[edit]

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.

[edit]
  • [Step-by-Step Process](step-by-step.md) - Basic setup
  • [Service Examples](service-examples.md) - Example configurations