nginx: add config to set http_header
This commit is contained in:
parent
755f5bfdcd
commit
6a2af31f0d
4 changed files with 77 additions and 11 deletions
|
@ -48,7 +48,13 @@
|
|||
"git.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:8987";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8987";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -27,7 +27,13 @@ in
|
|||
"books.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:8083";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8083";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -35,7 +35,13 @@ in
|
|||
"vault.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:8222";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8222";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -149,49 +149,97 @@
|
|||
"bebop.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:2342";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:2342";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"music.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:4533";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:4533";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"minio.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://${config.services.minio.consoleAddress}";
|
||||
locations."/" = {
|
||||
proxyPass = "http://${config.services.minio.consoleAddress}";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"paperless.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:28981";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:28981";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"outline.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:3000";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:3000";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"dex.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:5556";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:5556";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"radicale.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:5232";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:5232";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
"analytics.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:13231";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:13231";
|
||||
proxyWebsockets = false;
|
||||
extraConfig =
|
||||
"http_set_header $http_host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Reference in a new issue