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 | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 10 | (Host "clicks.codes" (Compose [ |
| 11 | (Path "/.well-known/matrix/" |
Skyler Grey | 0de8a08 | 2023-11-21 22:45:29 +0000 | [diff] [blame] | 12 | (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix))) |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 13 | (ReverseProxy "127.0.0.1:3000") |
| 14 | ])) |
| 15 | (Hosts [ "vaultwarden.clicks.codes" "passwords.clicks.codes" ] (ReverseProxy "generic:1028")) |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 16 | (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 17 | (Hosts [ |
| 18 | "syncthing.clicks.codes" |
| 19 | "syncthing.coded.codes" |
| 20 | "syncthing.thecoded.prof" |
| 21 | "syncthing.hopescaramels.com" |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 22 | ] (ReverseProxy "127.0.0.1:8384")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 23 | (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ] |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 24 | (ReverseProxy "generic:1024")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 25 | (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ] |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 26 | (ReverseProxy "127.0.0.1:9052")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 27 | (InsecureHosts [ |
| 28 | "mail.clicks.codes" |
| 29 | "mail.coded.codes" |
| 30 | "mail.hopescaramels.com" |
| 31 | "autoconfig.coded.codes" |
| 32 | "autoconfig.clicks.codes" |
| 33 | "autoconfig.hopescaramels.com" |
| 34 | "imap.coded.codes" |
| 35 | "imap.clicks.codes" |
| 36 | "imap.hopescaramels.com" |
| 37 | "pop.coded.codes" |
| 38 | "pop.clicks.codes" |
| 39 | "pop.hopescaramels.com" |
| 40 | "smtp.coded.codes" |
| 41 | "smtp.clicks.codes" |
| 42 | "smtp.hopescaramels.com" |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 43 | ] (ReverseProxy "generic:1026")) |
| 44 | (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 45 | (pkgs.schildichat-web.override { |
| 46 | conf = { |
| 47 | default_server_config = |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 48 | lib.pipe ./nginx/clicks.codes/.well-known/matrix [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 49 | builtins.readFile |
| 50 | builtins.fromJSON |
| 51 | ]; |
| 52 | features = { |
| 53 | feature_report_to_moderators = true; |
| 54 | feature_latex_maths = true; |
| 55 | feature_pinning = true; |
| 56 | feature_mjolnir = true; |
| 57 | feature_presence_in_room_list = true; |
| 58 | feature_custom_themes = true; |
| 59 | feature_dehydration = true; |
| 60 | }; |
| 61 | setting_defaults = { "fallbackICEServerAllowed" = true; }; |
| 62 | default_theme = "dark"; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 63 | disable_guests = true; |
| 64 | disable_3pid_login = true; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 65 | }; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 66 | })}")) |
| 67 | (Host "api.clicks.codes" |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 68 | (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000"))) |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 69 | (Host "api.coded.codes" |
Skyler Grey | 1886112 | 2023-10-25 21:05:54 +0000 | [diff] [blame] | 70 | (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000"))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 71 | (Host "coded.codes" (Compose [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 72 | (Path "/.well-known/matrix/" |
Skyler Grey | 0de8a08 | 2023-11-21 22:45:29 +0000 | [diff] [blame] | 73 | (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 74 | (Redirect "https://clicks.codes$request_uri") |
| 75 | ])) |
Skyler Grey | 75aa949 | 2023-11-21 00:29:09 +0000 | [diff] [blame] | 76 | (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [ |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 77 | (Path "/_synapse/admin/" (Status 403)) |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 78 | (ReverseProxy "127.0.0.1:4527") |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 79 | ])) |
| 80 | ]; |
| 81 | clicks.nginx.serviceAliases = with helpers.nginx; [ |
| 82 | (Aliases "nextcloud.clicks.codes" [ |
| 83 | "cloud.clicks.codes" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 84 | "www.cloud.clicks.codes" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 85 | "www.nextcloud.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 86 | ]) |
| 87 | (Aliases "privatebin" [ |
| 88 | "paste.clicks.codes" |
| 89 | "paste.coded.codes" |
| 90 | "paste.thecoded.prof" |
| 91 | "paste.hopescaramels.com" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 92 | "www.paste.clicks.codes" |
| 93 | "www.paste.coded.codes" |
| 94 | "www.paste.thecoded.prof" |
| 95 | "www.paste.hopescaramels.com" |
| 96 | "www.privatebin.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 97 | ]) |
| 98 | ]; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 99 | } |