This commit is contained in:
Schrottkatze 2023-04-30 14:56:30 +02:00
parent 913bab2fbf
commit 0e23e021c1
5 changed files with 71 additions and 22 deletions

View file

@ -11,10 +11,10 @@
#group = "nginx";
#keyType = "rsa4096";
#};
#"wiki.phtanum-b.katzen.cafe" = {
#group = "nginx";
#keyType = "rsa4096";
#};
"wiki.phtanum-b.katzen.cafe" = {
group = "nginx";
keyType = "rsa4096";
};
"auth.katzen.cafe" = {
group = "nginx";
keyType = "rsa4096";
@ -24,19 +24,24 @@
services.nginx = {
enable = true;
virtualHosts = {
#"wiki.phtanum-b.katzen.cafe" = {
#forceSSL = true;
#enableACME = true;
#locations."/" = {
#proxyPass = "http://127.0.0.1:8080";
#};
#};
"wiki.phtanum-b.katzen.cafe" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.2:8081";
};
};
"auth.katzen.cafe" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8097";
proxyPass = "http://127.0.0.1:8080";
};
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_protocol_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
'';
};
};