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