File tree Expand file tree Collapse file tree
admin_manual/installation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,6 +225,15 @@ server {
225225 # Serve static files
226226 location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac|mp4|webm)$ {
227227 try_files $uri /index.php$request_uri;
228+
229+ # HSTS settings
230+ # WARNING: Only add the preload option once you read about
231+ # the consequences in https://hstspreload.org/. This option
232+ # will add the domain to a hardcoded list that is shipped
233+ # in all major browsers and getting removed from this list
234+ # could take several months.
235+ #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
236+
228237 # HTTP response headers borrowed from Nextcloud `.htaccess`
229238 add_header Cache-Control "public, max-age=15778463$asset_immutable";
230239 add_header Referrer-Policy "no-referrer" always;
You can’t perform that action at this time.
0 commit comments