dev.fron.io rc / 759e683
containers::mastodon: change twpub domain Tony Olagbaiye 1 year, 1 month ago
2 changed file(s) with 15 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
131131 systemd.services.twitterpub = {
132132 serviceConfig = let
133133 configToml = pkgs.writeText "twitterpub.toml" ''
134 Domain = "twitter.com"
134 Domain = "tw.${domains.srvc}"
135135 Listen = ":443"
136136 TLS = true
137137 CertFile = "${twitterCfg.crtFile}"
7676 mastodon-https = mastodon-http // {
7777 entryPoints = [ "https" ];
7878 tls.domains = [{ main = "u.${domains.srvc}"; }];
79 };
80 twitterpub-http = {
81 entryPoints = [ "http" ];
82 rule = "Host(`tw.${domains.srvc}`)";
83 service = "twitterpub";
84 };
85 twitterpub-https = twitterpub-http // {
86 entryPoints = [ "https" ];
87 tls.domains = [{ main = "tw.${domains.srvc}"; }];
7988 };
8089 construct-http = {
8190 entryPoints = [ "http" ];
381390 { url = "https://10.6.0.2:8443"; }
382391 ];
383392 };
393 twitterpub.loadBalancer = {
394 servers = [
395 { url = "https://10.6.0.2:443"; }
396 ];
397 };
384398 construct.loadBalancer = {
385399 servers = [
386400 { url = "https://10.7.0.2:4004"; }