Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 1 | { pkgs, helpers, config, lib, ... }: { |
| 2 | clicks.nginx.services = with helpers.nginx; [ |
TheCodedProf | af04456 | 2023-10-22 20:04:27 -0400 | [diff] [blame] | 3 | (Host "signup.hopescaramels.com" (ReverseProxy "caramels:1024")) |
TheCodedProf | 1381cee | 2023-10-22 20:04:27 -0400 | [diff] [blame] | 4 | (Host "freeflowtaekwondo.com" (ReverseProxy "generic:1026")) |
Skyler Grey | 1886112 | 2023-10-25 21:05:54 +0000 | [diff] [blame] | 5 | (Host "homebridge.coded.codes" (ReverseProxy "CodedPi:8581")) |
| 6 | (Host "codedpc.coded.codes" (ReverseProxy "SamuelDesktop:3389")) |
| 7 | (Host "testing.coded.codes" (ReverseProxy "SamuelDesktop:3000")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 8 | (Hosts [ "kavita.coded.codes" "reading.coded.codes" ] |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 9 | (ReverseProxy "127.0.0.1:5000")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 10 | (Host "clicks.codes" (ReverseProxy "127.0.0.1:3000")) |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 11 | (Host "passwords.clicks.codes" (ReverseProxy "127.0.0.1:8452")) |
| 12 | (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 13 | (Hosts [ |
| 14 | "syncthing.clicks.codes" |
| 15 | "syncthing.coded.codes" |
| 16 | "syncthing.thecoded.prof" |
| 17 | "syncthing.hopescaramels.com" |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 18 | ] (ReverseProxy "127.0.0.1:8384")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 19 | (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ] |
| 20 | (ReverseProxy "127.0.0.255:1000")) |
| 21 | (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ] |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 22 | (ReverseProxy "127.0.0.1:9052")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 23 | (InsecureHosts [ |
| 24 | "mail.clicks.codes" |
| 25 | "mail.coded.codes" |
| 26 | "mail.hopescaramels.com" |
| 27 | "autoconfig.coded.codes" |
| 28 | "autoconfig.clicks.codes" |
| 29 | "autoconfig.hopescaramels.com" |
| 30 | "imap.coded.codes" |
| 31 | "imap.clicks.codes" |
| 32 | "imap.hopescaramels.com" |
| 33 | "pop.coded.codes" |
| 34 | "pop.clicks.codes" |
| 35 | "pop.hopescaramels.com" |
| 36 | "smtp.coded.codes" |
| 37 | "smtp.clicks.codes" |
| 38 | "smtp.hopescaramels.com" |
Skyler Grey | 56b293d | 2023-10-22 22:53:34 +0000 | [diff] [blame] | 39 | ] (ReverseProxy "127.0.0.1:1080")) |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 40 | (Host "matrix.coded.codes" (Directory "${builtins.toString |
| 41 | (pkgs.schildichat-web.override { |
| 42 | conf = { |
| 43 | default_server_config = |
| 44 | lib.pipe ./nginx/coded.codes/.well-known/matrix [ |
| 45 | builtins.readFile |
| 46 | builtins.fromJSON |
| 47 | ]; |
| 48 | features = { |
| 49 | feature_report_to_moderators = true; |
| 50 | feature_latex_maths = true; |
| 51 | feature_pinning = true; |
| 52 | feature_mjolnir = true; |
| 53 | feature_presence_in_room_list = true; |
| 54 | feature_custom_themes = true; |
| 55 | feature_dehydration = true; |
| 56 | }; |
| 57 | setting_defaults = { "fallbackICEServerAllowed" = true; }; |
| 58 | default_theme = "dark"; |
| 59 | permalink_prefix = "https://matrix.coded.codes"; |
| 60 | disable_guests = true; |
| 61 | disable_3pid_login = true; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 62 | }; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 63 | })}")) |
| 64 | (Host "api.clicks.codes" |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 65 | (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000"))) |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 66 | (Host "api.coded.codes" |
Skyler Grey | 1886112 | 2023-10-25 21:05:54 +0000 | [diff] [blame] | 67 | (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000"))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 68 | (Host "coded.codes" (Compose [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 69 | (Path "/.well-known/matrix/" |
| 70 | (File ./nginx/coded.codes/.well-known/matrix)) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 71 | (Redirect "https://clicks.codes$request_uri") |
| 72 | ])) |
| 73 | (Host "matrix-backend.coded.codes" (Compose [ |
| 74 | (Path "/_synapse/admin/" (Status 403)) |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 75 | (ReverseProxy "127.0.0.1:4527") |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 76 | ])) |
| 77 | ]; |
| 78 | clicks.nginx.serviceAliases = with helpers.nginx; [ |
| 79 | (Aliases "nextcloud.clicks.codes" [ |
| 80 | "cloud.clicks.codes" |
| 81 | "docs.clicks.codes" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 82 | "www.cloud.clicks.codes" |
| 83 | "www.docs.clicks.codes" |
| 84 | "www.nextcloud.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 85 | ]) |
| 86 | (Aliases "privatebin" [ |
| 87 | "paste.clicks.codes" |
| 88 | "paste.coded.codes" |
| 89 | "paste.thecoded.prof" |
| 90 | "paste.hopescaramels.com" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 91 | "www.paste.clicks.codes" |
| 92 | "www.paste.coded.codes" |
| 93 | "www.paste.thecoded.prof" |
| 94 | "www.paste.hopescaramels.com" |
| 95 | "www.privatebin.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 96 | ]) |
| 97 | ]; |
| 98 | clicks.nginx.streams = with helpers.nginx; [ |
Skyler Grey | 56b293d | 2023-10-22 22:53:34 +0000 | [diff] [blame] | 99 | (ProxyStream 143 "127.0.0.1:1143" "tcp") # imap |
| 100 | (ProxyStream 993 "127.0.0.1:1993" "tcp") # imap |
| 101 | (ProxyStream 110 "127.0.0.1:1110" "tcp") # pop3 |
| 102 | (ProxyStream 995 "127.0.0.1:1995" "tcp") # pop3 |
| 103 | (ProxyStream 25 "127.0.0.1:1025" "tcp") # smtp |
| 104 | (ProxyStream 465 "127.0.0.1:1465" "tcp") # smtp |
| 105 | (ProxyStream 587 "127.0.0.1:1587" "tcp") # smtp |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 106 | ]; |
| 107 | } |