refactor web server, hardware
This commit is contained in:
parent
f7d62caaa4
commit
5c8a4bcfdc
8 changed files with 29 additions and 22 deletions
29
system/web-server/outline.nix
Normal file
29
system/web-server/outline.nix
Normal 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;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue