1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 19:14:03 +00:00

nginx sample config, quickly tested

This commit is contained in:
href 2017-12-11 02:40:19 +01:00
parent 077faaed8c
commit d1806ec07f
No known key found for this signature in database
GPG key ID: EE8296C1A152C325

View file

@ -1,3 +1,6 @@
proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=10g
inactive=720m use_temp_path=off;
server { server {
listen 80; listen 80;
server_name example.tld; server_name example.tld;
@ -21,6 +24,13 @@ server {
location / { location / {
proxy_pass http://localhost:4000; proxy_pass http://localhost:4000;
} }
location /proxy {
proxy_cache pleroma_media_cache;
proxy_cache_lock on;
proxy_pass http://localhost:4000;
}
include snippets/well-known.conf; include snippets/well-known.conf;
} }