Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #148 from iotku/master
Browse files Browse the repository at this point in the history
Add security headers to Nginx reverse proxy
  • Loading branch information
dkanada authored Oct 25, 2019
2 parents 0f962bc + a5c0339 commit f37333f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions general/administration/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ server {
# ssl_stapling on;
# ssl_stapling_verify on;
#
# # Security / XSS Mitigation Headers
# add_header X-Frame-Options "SAMEORIGIN";
# add_header X-XSS-Protection "1; mode=block";
# add_header X-Content-Type-Options "nosniff";
#
# # Content Security Policy
# # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
# # Enforces https content and restricts JS/CSS to origin
# # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted.
# add_header Content-Security-Policy "default-src https: data: blob:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'";
#
# location / {
# # Proxy main Jellyfin traffic
# proxy_pass http://SERVER_IP_ADDRESS:8096;
Expand Down

0 comments on commit f37333f

Please sign in to comment.