mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Streaming across Tailscale for the win
This commit is contained in:
parent
924766af58
commit
2810ed2ffd
2 changed files with 18 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
domain = "technicalissues.us";
|
||||
http_port = 80;
|
||||
https_port = 443;
|
||||
private_btc = "100.83.153.7";
|
||||
in {
|
||||
|
||||
services.nginx = {
|
||||
|
|
@ -19,6 +20,19 @@ in {
|
|||
}
|
||||
add_header Strict-Transport-Security $hsts_header;
|
||||
'';
|
||||
streamConfig = ''
|
||||
server {
|
||||
listen 0.0.0.0:8333;
|
||||
listen [::]:8333;
|
||||
proxy_pass ${private_btc}:8333;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 0.0.0.0:9735;
|
||||
listen [::]:9735;
|
||||
proxy_pass ${private_btc}:9735;
|
||||
}
|
||||
'';
|
||||
virtualHosts = {
|
||||
"hetznix01.${domain}" = {
|
||||
serverAliases = [
|
||||
|
|
@ -70,9 +84,9 @@ in {
|
|||
acmeRoot = null;
|
||||
forceSSL = true;
|
||||
# basicAuthFile = config.sops.secrets.owntracks_basic_auth.path;
|
||||
# Albyhub container
|
||||
# Albyhub via Tailscale
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8080";
|
||||
proxyPass = "http://${private_btc}:59000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue