Services:Service Examples: Difference between revisions
Appearance
Added troubleshooting guide: Service-Specific Examples |
Minor update - troubleshooting guide: Service-Specific Examples (4 sections) |
||
| Line 63: | Line 63: | ||
== Related Documentation == | == Related Documentation == | ||
* [Step-by-Step Process](step-by-step.md) - Setup process | |||
* [Configuration Options](configuration-options.md) - Advanced options | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Documentation/Services]] | [[Category:Documentation/Services]] | ||
[[Category:Documentation/Services/Adding Services]] | [[Category:Documentation/Services/Adding Services]] | ||
Revision as of 13:28, 1 January 2026
Service-Specific Examples
This document provides service-specific configuration examples.
Basic Web Application
server {
server_name app.jb-vpn.uk;
location / {
proxy_pass http://10.8.0.2:3000;
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;
}
listen 80;
}
Service with API Path
If your service has a specific path prefix:
server {
server_name api.jb-vpn.uk;
location / {
proxy_pass http://10.8.0.2:8080/api/;
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;
}
listen 80;
}
Service Requiring Authentication Headers
server {
server_name secure.jb-vpn.uk;
location / {
proxy_pass http://10.8.0.2:9000;
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_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
}
listen 80;
}
Related Documentation
- [Step-by-Step Process](step-by-step.md) - Setup process
- [Configuration Options](configuration-options.md) - Advanced options