mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: try some things with the sharkey proxy that are not done yet
This commit is contained in:
parent
e155e2524c
commit
4cce15c7d4
1 changed files with 21 additions and 0 deletions
|
|
@ -15,6 +15,27 @@
|
||||||
proxy_set_header X-Forwarded-Host $remote_addr;
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
locations."/files/" = {
|
||||||
|
proxyPass = "http://localhost:3000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||||
|
|
||||||
|
# Try cache?
|
||||||
|
# proxy_cache sharkey;
|
||||||
|
# proxy_cache_path /var/cache/nginx/sharkey levels=1:2 keys_zone=sharkey:15m;
|
||||||
|
# proxy_cache_lock on;
|
||||||
|
# proxy_cache_use_stale updating;
|
||||||
|
# proxy_force_ranges on;
|
||||||
|
# add_header X-Cache $upstream_cache_status;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
locations."/wiki/" = {
|
locations."/wiki/" = {
|
||||||
# Nepenthis
|
# Nepenthis
|
||||||
proxyPass = "http://localhost:8893";
|
proxyPass = "http://localhost:8893";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue