refactor web server, hardware

This commit is contained in:
Till 2024-12-26 21:54:01 +01:00
parent f7d62caaa4
commit 5c8a4bcfdc
8 changed files with 29 additions and 22 deletions

View file

@ -0,0 +1,29 @@
{ config, pkgs, ... }:
{
services.outline = {
enable = true;
storage.storageType = "local";
};
services.nginx.virtualHosts."outline.ktiu.net" = {
addSSL = true;
enableACME = true;
# root = "/var/www/myhost.org";
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
extraConfig =
"proxy_set_header Upgrade $http_upgrade;" +
"proxy_set_header Connection \"Upgrade\";" +
"proxy_set_header Host $host;" +
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header Host $host;" +
"proxy_set_header X-Real-IP $remote_addr;" +
"proxy_set_header X-Scheme $scheme;" +
"proxy_set_header X-Forwarded-Proto $scheme;" +
"proxy_redirect off;"
;
};
};
}