Commit Graph

16 Commits (main)

Author SHA1 Message Date
gunchleoc cb9f96036c
Add suggestion for secure cyphers to nginx.conf (#26349) 9 months ago
Eashwar Ranganathan 11f5a8e54b
Make mastodon-streaming systemd unit templated (#24751)
Co-authored-by: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
10 months ago
Claire fed9cbfd2b
Add hardened headers to user-uploaded files (#25756) 11 months ago
Eugen Rochko 9bda933740
Change media upload limits and remove client-side resizing (#23726) 1 year ago
keiya 53817294fc
Fix nginx location matching (#20198) 2 years ago
Rob Petti 8c81db5a41
allow /api/v1/streaming to be used as per documentation (#19896) 2 years ago
Yurii Izorkin a449ee8654
nginx: optimize locations (#19438)
* nginx: optimize locations

* nginx: don't use regex in locations

* nginx: optimize Cache-Control headaers

* nginx: use 404 error_page for missing static files

* nginx: sort locations

* nginx: add missing HSTS header
2 years ago
Shlee c7bab3318e
Remove duplicate HSTS headers from nginx.conf (#19018)
* Update nginx.conf

* Update nginx.conf

* Update nginx.conf
2 years ago
LinAGKar 48caeb9d65
Also compress SVG and ICO images in nginx (#17651) 2 years ago
Peter Dave Hello a2afcac7d9
Make sure nginx always send HSTS header (#16633)
By default, it'll only send those headers when the response code is one of the following:
- 200, 201, 204, 206, 301, 302, 303, 304, 307 & 308

As all the traffics should be https, the http protocol only exists to do 301 redirect,
and always send the HSTS header is almost one of the best practices, we should set
nginx to do so.

Reference:
- https://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header
- https://ssl-config.mozilla.org/
3 years ago
Peter Dave Hello e03dc3956f
Disable nginx ssl_session_tickets for better security (#16632)
It's default turned on, but it's better to turn it off for security reason.

Reference:
- https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_tickets
- https://github.com/mozilla/server-side-tls/issues/135
3 years ago
Cecylia Bocovich 38bc4b9562
Set X-Forwarded-Proto to request scheme (#15310) (#15498)
This fixes a bug that prevents logins to mastodon onion services. The
nginx directive assumed all requests were made over https, causing a
domain mismatch for onion services that have https redirects disabled.
The fix more correctly sets X-Forwarded-Proto to the actual scheme used
in the request.
3 years ago
Shlee 514cd874a7
Update nginx.conf (#13066) 4 years ago
ichi_i 49f57b5534 Add TLS v1.3 support (#11603)
Maintain TLS v1.2 compatibility (might want to drop this later) and add support for TLS v1.3
5 years ago
Eugen Rochko b7379da6cc
Cache error 410 responses in recommended nginx configuration (#10425) 5 years ago
Eugen Rochko 6465972caf
Add nginx and systemd templates (#8770)
So they can be copied during installation instead of looking
them up in the documentation

Make default sidekiq configuration use weighted queues

Remove deprecated docs directory
6 years ago