Mark Felder
8906f30ba1
Use an upstream for reverse proxy so future modifications are simplified
pirms 3 gadiem
Mark Felder
ade7fede71
Most proxy settings can be global
pirms 3 gadiem
Mark Felder
2b553b8f8e
Remove duplicate setting
pirms 3 gadiem
Mark Felder
75f6e5e8b7
Add FedSockets config
pirms 3 gadiem
normandy
122328b93a
Update pleroma.nginx to support TLSv1.3
Based on SSL config from https://ssl-config.mozilla.org/
pirms 4 gadiem
rinpatch
0b823755a2
Merge branch 'fix/cache-control-headers' into 'develop'
Fix Cache Control headers on media
See merge request pleroma/pleroma!2295
pirms 4 gadiem
Mark Felder
e04e16bbc0
Do not strip Cache-Control headers from media. Trust the Pleroma backend.
pirms 4 gadiem
minibikini
f9380289eb
Add `remote_ip` plug
pirms 4 gadiem
kPherox
99b4847da3
Fix missing changes in pleroma/pleroma!1197
pirms 4 gadiem
rinpatch
997e766929
Remove sudo in the nginx config command example
pirms 5 gadiem
rinpatch
c013d3f3c8
Fix the webroot method in the nginx config
pirms 5 gadiem
rinpatch
ddf5e6254a
Fix nginx webroot method config
pirms 5 gadiem
Alfie Pates
356c047759
explicitly set reverse proxy upstream to IPv4
since Pleroma.Web.Endpoint binds on IPv4 only and `localhost.` resolves to
[::0] on some systems
fixes #930 .
pirms 5 gadiem
Horsemans
10a9682596
ssl_trusted_certificate should point to chain.pem if we're demonstrating LetsEncrypt: https://community.letsencrypt.org/t/howto-ocsp-stapling-for-nginx/13611/5
pirms 5 gadiem
Kenneth Zhao
e1bdaaa3fe
need to put back ipv4 listen instruct
pirms 5 gadiem
PEA
d3a6c065a4
Add ipv6 handling to pleroma.nginx
Replaces `listen 80` with `listen [::]:80`, same with 443
pirms 5 gadiem
shibayashi
1d8b578bb7
Recommend the acme-challenge path that is used in the installation guides
pirms 5 gadiem
Mark Felder
cc3a83a730
Fix nginx caching issues
Nginx is currently not caching data because proxy_buffering needs to be
enabled for caching to work at all, and we are receiving a Cache-Control
header from Pleroma that states "max-age=0, private, must-revalidate"
Even disregarding the Cache-Control header that should actually be set
to "public, max-age=1209600" as defined in the reverse_proxy code, we
don't want to obey this header at all as it overrides our Nginx caching
rules.
pirms 5 gadiem
Mark Felder
d56772c813
proxy buffering still needs to be off
pirms 5 gadiem
Mark Felder
48c4f88ffd
Update proxy config to improve behavior and allow compatibility with Safari on MacOS and iOS
pirms 5 gadiem
href
97b00d366f
reverse_proxy: more headers
pirms 5 gadiem
William Pitcock
e4bd5a6950
example configs: kill STS/CT headers
pirms 5 gadiem
William Pitcock
057a9017b3
example configs: remove obsolete CSP configuration
pirms 5 gadiem
William Pitcock
fd918863aa
nginx example config: remove CORS headers, now managed by CORSPlug.
pirms 5 gadiem
Hakaba Hitoyo
3ea4f9ac8d
Remove Access-Control-Allow-Origin
pirms 5 gadiem
shibayashi
800d233631
Use example.tld so a single search and replace works
pirms 5 gadiem
shibayashi
732d3fce73
Use the same example domain in all config examples
pirms 5 gadiem
shibayashi
56c49513e0
Use the server name as variable
pirms 5 gadiem
barrucadu
a32e013909
Relax form-action content security policy
'self' only allows forms submitted to the same origin, which
breaks the "remote follow" form. To allow remote following,
we want to allow forms to be submitted to any host.
pirms 5 gadiem
shibayashi
d027c53d75
Add frame-ancestors 'none' to all configs
pirms 5 gadiem
shibayashi
d035566116
installation/pleroma.nginx: Add 'always' to the security headers, so that they are included regardless of the status code
pirms 5 gadiem
Haelwenn (lanodan) Monnier
0fd2eaf7af
installation/pleroma.nginx: Add Content-Security-Policy
Closes: https://git.pleroma.social/pleroma/pleroma/issues/266
pirms 5 gadiem
Artik Banana
394d0c94c4
Add comment about TLS curves for older servers.
pirms 6 gadiem
dex
750cfbf38d
* fix nginx 1.15 warning:
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
pirms 6 gadiem
Artik Banana
93c614bf13
* Removed TLSv1 and TLSv1.1
* Added OCSP Stapling
* Added SSL Cache
* Changed ciphers
* Specified ECDH curves
pirms 6 gadiem
Artik Banana
c645a8de2b
Security upgrades:
* Removed TLSv1 and TLSv1.1
* Added OCSP Stapling
* Added SSL Cache
* Changed ciphers
* Specified ECDH curves
pirms 6 gadiem
Dominik V. Salonen
a6fd9c4b00
Update pleroma.nginx
proxy_ignore_client_abort will continue to fetch from upstream even if a client aborts the connection. This is highly recommended when cache is being used. If a client leaves/refreshes the page while a user's avatar or some other media is halfway loaded, the cached copy might in some cases be broken. Leaving future requests to the same URL broken until cache expires.
pirms 6 gadiem
Niklas Poslovski
f0e8194a71
Repair some access-control headers required for third-party webclients
pirms 6 gadiem
Niklas Poslovski
d81a4e9280
Add access-control-expose-headers to Nginx default config
pirms 6 gadiem
Artik Banana
0a1fd8adf0
Added headers for a more secure default.
pirms 6 gadiem
csaurus
1c6a691570
Add info about certbot with the webroot plugin to pleroma.nginx
pirms 6 gadiem
Hector A. Escobedo
7e262c2997
Fix max upload size in nginx config.
The built-in nginx default does not allow users to upload images
larger than 1 MB. This increases the maximum request size to match
the default Pleroma config upload_limit parameter. Some helpful
comments were also added.
pirms 6 gadiem
William Pitcock
d8464b603e
nginx: document how to enable CORS support
pirms 6 gadiem
lambda
f8f3abe1be
Update pleroma.nginx
pirms 6 gadiem
lambda
060ac6cb95
Update pleroma.nginx
pirms 6 gadiem
Hakaba Hitoyo
9c0c40cf1e
Access-Control-Allow-Origin
pirms 6 gadiem
Hakaba Hitoyo
aceef36e56
Correct pleroma.nginx
pirms 6 gadiem
href
d1806ec07f
nginx sample config, quickly tested
pirms 6 gadiem
eal
afd0ea37f3
Add websocket upgrade to example nginx config.
pirms 6 gadiem
Henry Jameson
a6e89ae6a3
disable sslv3
pirms 6 gadiem