pi4: configure most reverse proxies
This commit is contained in:
parent
941488457e
commit
76a305d608
@ -52,7 +52,40 @@
|
|||||||
port_in_redirect off;
|
port_in_redirect off;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = let
|
||||||
|
mkReverseProxy = port: {
|
||||||
|
useACMEHost = "protogen.io";
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${builtins.toString port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
# TODO change all these with a vim macro when i learn how to extend submodules
|
||||||
|
"changedetection.protogen.io" = mkReverseProxy 5000;
|
||||||
|
"firefly.protogen.io" = mkReverseProxy 8083;
|
||||||
|
# firefly-import auth 8084
|
||||||
|
"gitea.protogen.io" = mkReverseProxy 3000;
|
||||||
|
# home assistant
|
||||||
|
"hass.protogen.io" = mkReverseProxy 8123;
|
||||||
|
"node.protogen.io" = mkReverseProxy 1880;
|
||||||
|
# z2m auth 8124
|
||||||
|
"jellyfin.protogen.io" = mkReverseProxy 8096;
|
||||||
|
# deemix auth 8096
|
||||||
|
# libreddit auth 8087
|
||||||
|
"rss.protogen.io" = mkReverseProxy 8082;
|
||||||
|
"blahaj.protogen.io" = mkReverseProxy 8086;
|
||||||
|
# octoprint (proxy_addr is 10.10.1.8)
|
||||||
|
# searx auth 8088 (none for /favicon.ico, /autocompleter, /opensearch.xml)
|
||||||
|
# nbt.sh alias proot.link 8090
|
||||||
|
# admin.nbt.sh alias admin.proot.link 8091 auth
|
||||||
|
# create track map todo later
|
||||||
|
"uptime.protogen.io" = mkReverseProxy 3001;
|
||||||
|
"kuma.protogen.io".locations."/".return = "301 https://uptime.protogen.io";
|
||||||
|
"vsc-hass.protogen.io" = mkReverseProxy 1881;
|
||||||
|
|
||||||
|
|
||||||
"localhost" = {
|
"localhost" = {
|
||||||
default = true;
|
default = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user