mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 05:30:05 +03:00
Update nginx.md (#1369)
This commit is contained in:
@@ -16,15 +16,6 @@ Note that a server listening on http port 80 is required for the Certbot / Let's
|
||||
### HTTPS config example
|
||||
|
||||
```config
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name jellyfin.example.org;
|
||||
|
||||
# Uncomment to redirect HTTP to HTTPS
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
# Nginx versions prior to 1.25
|
||||
#listen 443 ssl http2;
|
||||
@@ -92,6 +83,13 @@ server {
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name jellyfin.example.org;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
```
|
||||
|
||||
## Extra Nginx Configurations
|
||||
|
||||
Reference in New Issue
Block a user