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