Skip to content

Commit

Permalink
Correcting http2 switch, re-adding explicit XSS disable.
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnake1298 committed Sep 5, 2024
1 parent 20892bd commit 7703416
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/general/networking/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ server {
#}
#server {
# listen 443 ssl;
# listen [::]:443 ssl;
http2 on;
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
server_name DOMAIN_NAME;
## The default `client_max_body_size` is 1M, this might not be enough for some posters, etc.
Expand All @@ -64,6 +63,7 @@ server {
# Security / XSS Mitigation Headers
# NOTE: X-Frame-Options may cause issues with the webOS app
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "0"; # Do NOT enable. This is obsolete/dangerous
add_header X-Content-Type-Options "nosniff";
# Permissions policy. May cause issues on some clients
Expand Down Expand Up @@ -179,7 +179,7 @@ server {

### HTTPS config example

The following config is meant to work with Certbot / Let's Encrypt.
The following config is meant to work with Certbot / Let's Encrypt. Note that a server listening on http port 80 is required for the Certbot / Let's Encrypt certification creation / renewal process.

```conf
# Jellyfin hosted on https://DOMAIN_NAME/jellyfin
Expand Down

0 comments on commit 7703416

Please sign in to comment.