headscale/blog: fix url, force ssl, proxy websockets
This commit is contained in:
parent
040bb41705
commit
a66dfe0b95
2 changed files with 6 additions and 5 deletions
|
|
@ -13,8 +13,8 @@ in
|
||||||
services = {
|
services = {
|
||||||
nginx.virtualHosts = {
|
nginx.virtualHosts = {
|
||||||
"zerforschen.plus" = {
|
"zerforschen.plus" = {
|
||||||
addSSL = true;
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/_metrics".proxyPass = "http://unix:" + anubis-metrics-socket + ":/metrics";
|
"/_metrics".proxyPass = "http://unix:" + anubis-metrics-socket + ":/metrics";
|
||||||
"/".proxyPass = "http://unix:" + anubis-domain-socket;
|
"/".proxyPass = "http://unix:" + anubis-domain-socket;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ in
|
||||||
address = "localhost";
|
address = "localhost";
|
||||||
port = headscale-port;
|
port = headscale-port;
|
||||||
settings = {
|
settings = {
|
||||||
server_url = "https://headscale.zerforschen.plus";
|
server_url = "https://uplink.darkest.space/";
|
||||||
dns = {
|
dns = {
|
||||||
override_local_dns = false;
|
override_local_dns = false;
|
||||||
base_domain = "high-gravity.space";
|
base_domain = "high-gravity.space";
|
||||||
|
|
@ -16,10 +16,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nginx.virtualHosts."uplink.darkest.space" = {
|
nginx.virtualHosts."uplink.darkest.space" = {
|
||||||
addSSL = true;
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
forceSSL = true;
|
||||||
"/".proxyPass = "http://localhost:${builtins.toString headscale-port}";
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${builtins.toString headscale-port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue