add new host
This commit is contained in:
parent
6d001a11f4
commit
d5509e6ea1
9 changed files with 90 additions and 22 deletions
|
@ -20,26 +20,26 @@
|
|||
recommendedOptimisation = true;
|
||||
|
||||
virtualHosts =
|
||||
let
|
||||
servicesDomain = "services.zerforschen.plus";
|
||||
mkServiceConfig = host: port: {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${host}:${toString port}/";
|
||||
extraConfig = ''
|
||||
# bind to tailscale ip
|
||||
proxy_bind 100.88.118.60;
|
||||
# pam auth
|
||||
limit_except OPTIONS {
|
||||
auth_pam "Password Required";
|
||||
auth_pam_service_name "nginx";
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
||||
in
|
||||
#let
|
||||
# servicesDomain = "services.zerforschen.plus";
|
||||
# mkServiceConfig = host: port: {
|
||||
# addSSL = true;
|
||||
# enableACME = true;
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://${host}:${toString port}/";
|
||||
# extraConfig = ''
|
||||
# # bind to tailscale ip
|
||||
# proxy_bind 100.88.118.60;
|
||||
# # pam auth
|
||||
# limit_except OPTIONS {
|
||||
# auth_pam "Password Required";
|
||||
# auth_pam_service_name "nginx";
|
||||
# }
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
# pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
||||
#in
|
||||
{
|
||||
#"vscode.${servicesDomain}" = lib.mkMerge [
|
||||
# (mkServiceConfig pc2 8542)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue