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 @@ -192,6 +192,15 @@ server {
192192 # Serve static files
193193 location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac|mp4|webm)$ {
194194 try_files $uri /index.php$request_uri;
195+
196+ # HSTS settings
197+ # WARNING: Only add the preload option once you read about
198+ # the consequences in https://hstspreload.org/. This option
199+ # will add the domain to a hardcoded list that is shipped
200+ # in all major browsers and getting removed from this list
201+ # could take several months.
202+ #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
203+
195204 # HTTP response headers borrowed from Nextcloud `.htaccess`
196205 add_header Cache-Control "public, max-age=15778463$asset_immutable";
197206 add_header Referrer-Policy "no-referrer" always;
You can’t perform that action at this time.
0 commit comments