Lain Soykaf
2b8a366f9b
Nginx example: Add headers and use same paths we use in other places
2025-12-22 16:10:02 +04:00
Mark Felder
045dfaf2af
Fix nginx location for serving media directly
2024-10-30 10:48:23 -04:00
Mark Felder
503e43da5d
Document the /uploads location more thoroughly
2024-09-25 15:36:20 -04:00
Mark Felder
2870140db2
The /media route has not existed for some years now
2024-09-25 15:27:30 -04:00
Mark Felder
90e0911cdb
Provide full uploads config for a subdomain
2024-09-25 15:19:57 -04:00
Mark Felder
f06a7b51e2
Annotate the Nginx media upload limit
2024-09-25 15:13:33 -04:00
Mark Felder
887a45488b
Provide example of configuring a dedicated media and proxy subdomain
2024-09-25 15:05:42 -04:00
Mark Felder
16796c292f
Provide HTTP/3 config example
2024-09-25 14:44:48 -04:00
Mark Felder
537d4d19c5
Move to the new method to enable http2 instead of on the listen socket statement
2024-09-25 14:42:18 -04:00
Mark Felder
f53c34c5d6
Move Pleroma cache to /var/tmp
...
/tmp is increasingly becoming tmpfs on a lot of distros and in cloud environments, so putting the cache there by default will be problematic
2024-09-25 14:37:50 -04:00
Sean King
3da1b2548d
Actually fix with forward slashes being restricted inside nickname
2022-07-18 21:30:57 -06:00
Sean King
2c7eed122e
Don't accept forward slash character for nicknames
2022-07-17 12:50:01 -06:00
Sean King
64e16e6a4b
Document way to do notice compatibility routes with Nginx reverse-proxy instead
2022-07-16 23:44:37 -06:00
rinpatch
2c55f7d7cb
Remove FedSockets
...
Current FedSocket implementation has a bunch of problems. It doesn't
have proper error handling (in case of an error the server just doesn't
respond until the connection is closed, while the client doesn't match
any error messages and just assumes there has been an error after 15s)
and the code is full of bad descisions (see: fetch registry which uses
uuids for no reason and waits for a response by recursively querying a
ets table until the value changes, or double JSON encoding).
Sometime ago I almost completed rewriting fedsockets from scrach to
adress these issues. However, while doing so, I realized that fedsockets
are just too overkill for what they were trying to accomplish, which is
reduce the overhead of federation by not signing every message.
This could be done without reimplementing failure states and endpoint
logic we already have with HTTP by, for example, using TLS cert auth,
or switching to a more performant signature algorithm. I opened
https://git.pleroma.social/pleroma/pleroma/-/issues/2262 for further
discussion on alternatives to fedsockets.
From discussions I had with other Pleroma developers it seems like they
would approve the descision to remove them as well,
therefore I am submitting this patch.
2020-11-17 17:28:30 +03:00
Mark Felder
8906f30ba1
Use an upstream for reverse proxy so future modifications are simplified
2020-09-21 16:19:08 -05:00
Mark Felder
ade7fede71
Most proxy settings can be global
2020-09-21 16:13:45 -05:00
Mark Felder
2b553b8f8e
Remove duplicate setting
2020-09-21 16:11:01 -05:00
Mark Felder
75f6e5e8b7
Add FedSockets config
2020-09-21 16:10:31 -05:00
normandy
122328b93a
Update pleroma.nginx to support TLSv1.3
...
Based on SSL config from https://ssl-config.mozilla.org/
2020-06-12 02:05:49 -04:00
Mark Felder
e04e16bbc0
Do not strip Cache-Control headers from media. Trust the Pleroma backend.
2020-03-13 11:31:55 -05:00
minibikini
f9380289eb
Add remote_ip plug
2019-09-27 21:59:23 +00:00
kPherox
99b4847da3
Fix missing changes in pleroma/pleroma!1197
2019-08-30 21:00:50 +09:00
rinpatch
997e766929
Remove sudo in the nginx config command example
2019-06-23 07:39:23 +03:00
rinpatch
c013d3f3c8
Fix the webroot method in the nginx config
2019-06-22 20:26:59 +03:00
rinpatch
ddf5e6254a
Fix nginx webroot method config
2019-06-21 05:46:21 +03:00
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 .
2019-05-23 22:33:27 +01:00
lambda
1b4c4d29a3
Merge branch 'ssl_trusted_cert' into 'develop'
...
ssl_trusted_certificate should point to chain.pem if we're demonstrating...
See merge request pleroma/pleroma!996
2019-04-12 08:58:46 +00:00
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
2019-03-31 16:58:28 +00:00
Kenneth Zhao
e1bdaaa3fe
need to put back ipv4 listen instruct
2019-02-26 08:41:37 -08:00
PEA
d3a6c065a4
Add ipv6 handling to pleroma.nginx
...
Replaces `listen 80` with `listen [::]:80`, same with 443
2019-02-25 23:37:46 -05:00
shibayashi
1d8b578bb7
Recommend the acme-challenge path that is used in the installation guides
2019-02-09 23:08:27 +01:00
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.
2019-01-10 21:29:05 +00:00
Mark Felder
d56772c813
proxy buffering still needs to be off
2018-12-12 17:36:00 +00:00
Mark Felder
48c4f88ffd
Update proxy config to improve behavior and allow compatibility with Safari on MacOS and iOS
2018-12-12 17:31:47 +00:00
href
97b00d366f
reverse_proxy: more headers
2018-11-30 18:00:57 +01:00
William Pitcock
e4bd5a6950
example configs: kill STS/CT headers
2018-11-11 06:56:46 +00:00
William Pitcock
057a9017b3
example configs: remove obsolete CSP configuration
2018-11-11 06:12:26 +00:00
William Pitcock
fd918863aa
nginx example config: remove CORS headers, now managed by CORSPlug.
2018-11-11 05:42:30 +00:00
kaniini
e1c40b8ca2
Merge branch 'patch-2' into 'develop'
...
Remove Access-Control-Allow-Origin in pleroma.nginx
See merge request pleroma/pleroma!424
2018-11-06 21:24:16 +00:00
Hakaba Hitoyo
3ea4f9ac8d
Remove Access-Control-Allow-Origin
2018-11-05 04:18:43 +00:00
shibayashi
800d233631
Use example.tld so a single search and replace works
2018-11-04 14:06:18 +01:00
shibayashi
732d3fce73
Use the same example domain in all config examples
2018-11-03 23:44:26 +01:00
shibayashi
56c49513e0
Use the server name as variable
2018-11-03 23:41:37 +01:00
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.
2018-09-28 22:17:19 +00:00
shibayashi
d027c53d75
Add frame-ancestors 'none' to all configs
2018-08-30 11:10:16 +02:00
shibayashi
d035566116
installation/pleroma.nginx: Add 'always' to the security headers, so that they are included regardless of the status code
2018-08-29 19:00:40 +02:00
Haelwenn (lanodan) Monnier
0fd2eaf7af
installation/pleroma.nginx: Add Content-Security-Policy
...
Closes: https://git.pleroma.social/pleroma/pleroma/issues/266
2018-08-28 20:54:50 +02:00
Artik Banana
394d0c94c4
Add comment about TLS curves for older servers.
2018-06-16 18:14:05 +00:00
dex
750cfbf38d
* fix nginx 1.15 warning:
...
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
2018-06-13 09:54:23 +00:00
Artik Banana
93c614bf13
* Removed TLSv1 and TLSv1.1
...
* Added OCSP Stapling
* Added SSL Cache
* Changed ciphers
* Specified ECDH curves
2018-06-11 23:01:14 +00:00