sail: Expose certain services only via SSL
This commit is contained in:
parent
5114ab5d10
commit
5232858822
5 changed files with 46 additions and 54 deletions
|
@ -37,11 +37,10 @@
|
|||
"d /etc/container-proxitok/cache 0755 33 33"
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."tictac.daniel.sx" = {
|
||||
services.nginx.virtualHosts."tictac.daniel.sx" = {
|
||||
http3 = true;
|
||||
|
||||
forceSSL = true;
|
||||
onlySSL = true;
|
||||
useACMEHost = "daniel.sx";
|
||||
basicAuthFile = config.age.secrets.proxitok-auth.path;
|
||||
|
||||
|
@ -50,5 +49,4 @@
|
|||
proxyPass = "http://127.0.0.1:8005";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -38,12 +38,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."overflow.daniel.sx" = {
|
||||
services.nginx.virtualHosts."overflow.daniel.sx" = {
|
||||
http3 = true;
|
||||
|
||||
root = "${anonymous-overflow-pkg}/share/anonymous-overflow/public/";
|
||||
forceSSL = true;
|
||||
onlySSL = true;
|
||||
useACMEHost = "daniel.sx";
|
||||
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
|
||||
|
||||
|
@ -60,5 +59,4 @@ in
|
|||
proxyPass = "http://127.0.0.1:8003";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
services.nginx.virtualHosts."${secret.nginx.hostnames.libreddit}" = {
|
||||
http3 = true;
|
||||
|
||||
forceSSL = true;
|
||||
onlySSL = true;
|
||||
useACMEHost = "daniel.sx";
|
||||
basicAuthFile = config.age.secrets.libreddit-auth.path;
|
||||
|
||||
|
|
|
@ -51,12 +51,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."${secret.nginx.hostnames.nitter}" = {
|
||||
services.nginx.virtualHosts."${secret.nginx.hostnames.nitter}" = {
|
||||
http3 = true;
|
||||
|
||||
root = "${nitter-pkg}/share/nitter/public/";
|
||||
forceSSL = true;
|
||||
onlySSL = true;
|
||||
useACMEHost = "daniel.sx";
|
||||
|
||||
locations."/" = {
|
||||
|
@ -72,5 +71,4 @@ in
|
|||
proxyPass = "http://127.0.0.1:8001";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -40,11 +40,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."ringo.daniel.sx" = {
|
||||
services.nginx.virtualHosts."ringo.daniel.sx" = {
|
||||
http3 = true;
|
||||
|
||||
forceSSL = true;
|
||||
onlySSL = true;
|
||||
useACMEHost = "daniel.sx";
|
||||
basicAuthFile = config.age.secrets.rimgo-auth.path;
|
||||
|
||||
|
@ -53,5 +52,4 @@ in
|
|||
proxyPass = "http://127.0.0.1:8006";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue