Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
c7bab331
Unverified
Commit
c7bab331
authored
2 years ago
by
Shlee
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove duplicate HSTS headers from nginx.conf (#19018)
* Update nginx.conf * Update nginx.conf * Update nginx.conf
parent
d7595adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist/nginx.conf
+2
-5
dist/nginx.conf
with
2 additions
and
5 deletions
+2
-5
dist/nginx.conf
+
2
-
5
View file @
c7bab331
...
...
@@ -52,21 +52,19 @@ server {
gzip_http_version
1
.1
;
gzip_types
text/plain
text/css
application/json
application/javascript
text/xml
application/xml
application/xml
+rss
text/javascript
image/svg
+xml
image/x-icon
;
add_header
Strict-Transport-Security
"max-age=31536000"
always
;
location
/
{
try_files
$uri
@proxy
;
}
location
~
^/(emoji|packs|system/accounts/avatars|system/media_attachments/files)
{
add_header
Cache-Control
"public,
max-age=31536000,
immutable"
;
add_header
Strict-Transport-Security
"max-age=
31536000"
always
;
add_header
Strict-Transport-Security
"max-age=
63072000
;
includeSubDomains"
;
try_files
$uri
@proxy
;
}
location
/sw.js
{
add_header
Cache-Control
"public,
max-age=0"
;
add_header
Strict-Transport-Security
"max-age=
31536000"
always
;
add_header
Strict-Transport-Security
"max-age=
63072000
;
includeSubDomains"
;
try_files
$uri
@proxy
;
}
...
...
@@ -90,7 +88,6 @@ server {
proxy_cache_valid
410
24h
;
proxy_cache_use_stale
error
timeout
updating
http_500
http_502
http_503
http_504
;
add_header
X-Cached
$upstream_cache_status
;
add_header
Strict-Transport-Security
"max-age=31536000"
always
;
tcp_nodelay
on
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets