Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgaspar authored and alexAubin committed Dec 20, 2024
1 parent 773ada7 commit 3fb2bb6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Add .mjs as a file extension for javascript
# Set .mjs MIME types
# Either include it in the default mime.types list
# or include you can include that list explicitly and add the file extension
# and include that list explicitly or add the file extension
# only for Nextcloud like below:
include mime.types;
types {
Expand Down Expand Up @@ -54,8 +55,15 @@ location ^~ __PATH__/ {
# for tunning hints
client_body_buffer_size 512k;

# HTTP response headers borrowed from Nextcloud `.htaccess`
# HSTS settings
# WARNING: Only add the preload option once you read about
# the consequences in https://hstspreload.org/. This option
# will add the domain to a hardcoded list that is shipped
# in all major browsers and getting removed from this list
# could take several months.
#more_set_headers "Strict-Transport-Security: max-age=15768000; includeSubDomains; preload;";

# HTTP response headers borrowed from Nextcloud `.htaccess`
more_set_headers "Referrer-Policy: no-referrer";
more_set_headers "X-Content-Type-Options: nosniff";
more_set_headers "X-Download-Options: noopen";
Expand Down

0 comments on commit 3fb2bb6

Please sign in to comment.