My Apache reverse proxy config #440
Zyplonox
started this conversation in
Show and tell
Replies: 1 comment
-
|
Let me also post my nginx configuration, as some might be interested in using nginx (it is heavily inspired by the jellyfin nginx configuration): upstream dim {
server 127.0.0.1:<port>;
}
server {
listen 80;
listen [::]:80;
server_name dim.<my-domain>;
access_log /var/log/nginx/dim.access.log;
# The default `client_max_body_size` is 1M, this might not be enough for some posters, etc.
client_max_body_size 20M;
# Security / XSS Mitigation Headers
# NOTE: X-Frame-Options may cause issues with the webOS app
#add_header X-Frame-Options "SAMEORIGIN";
add_header Access-Control-Allow-Origin "*" always;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
location / {
proxy_pass http://dim;
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 X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
location /ws {
proxy_pass http://dim;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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 X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
for those who are looking for the proxy config with websocket support, i want to share my config.
Following modules have to be enabled:
add to your config:
Regards
Beta Was this translation helpful? Give feedback.
All reactions