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 | ])) |
Samuel Shuert | 975c868 | 2024-02-07 17:59:54 -0500 | [diff] [blame] | 13 | (Hosts [ "resume.coded.codes" "resume.thecoded.prof" ] (ReverseProxy "coded:1024")) |
Skyler Grey | 82e0942 | 2024-03-10 14:11:44 +0000 | [diff] [blame] | 14 | (Hosts [ "vaultwarden.clicks.codes" ] (ReverseProxy "generic:1028")) |
| 15 | (Hosts [ "passwords.clicks.codes" ] (RedirectPermanent "https://vaultwarden.clicks.codes")) |
| 16 | (Hosts [ |
| 17 | "cloud.clicks.codes" |
| 18 | "www.cloud.clicks.codes" |
| 19 | ] (RedirectPermanent "https://nextcloud.clicks.codes")) |
Skyler Grey | fc04859 | 2024-03-10 13:46:17 +0000 | [diff] [blame] | 20 | (Hosts [ |
| 21 | "erpnext.clicks.codes" |
| 22 | "projects.clicks.codes" |
| 23 | "tasks.clicks.codes" |
| 24 | "issues.clicks.codes" |
| 25 | "kanban.clicks.codes" |
| 26 | "taiga.clicks.codes" |
| 27 | ] (Redirect "https://frappe.clicks.codes/app")) |
Skyler Grey | 8720ed1 | 2024-03-10 13:59:44 +0000 | [diff] [blame] | 28 | (Hosts [ |
| 29 | "wiki.clicks.codes" |
| 30 | ] (Redirect "https://frappe.clicks.codes/wiki")) |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 31 | (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 32 | (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ] |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 33 | (ReverseProxy "generic:1024")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 34 | (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ] |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 35 | (ReverseProxy "127.0.0.1:9052")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 36 | (InsecureHosts [ |
| 37 | "mail.clicks.codes" |
| 38 | "mail.coded.codes" |
| 39 | "mail.hopescaramels.com" |
| 40 | "autoconfig.coded.codes" |
| 41 | "autoconfig.clicks.codes" |
| 42 | "autoconfig.hopescaramels.com" |
| 43 | "imap.coded.codes" |
| 44 | "imap.clicks.codes" |
| 45 | "imap.hopescaramels.com" |
| 46 | "pop.coded.codes" |
| 47 | "pop.clicks.codes" |
| 48 | "pop.hopescaramels.com" |
| 49 | "smtp.coded.codes" |
| 50 | "smtp.clicks.codes" |
| 51 | "smtp.hopescaramels.com" |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 52 | ] (ReverseProxy "generic:1026")) |
Skyler Grey | 58fbb97 | 2023-12-23 02:39:35 +0000 | [diff] [blame] | 53 | (Hosts [ |
| 54 | "calibre.coded.codes" |
| 55 | "books.coded.codes" |
| 56 | "reading.coded.codes" |
| 57 | "calibre.thecoded.prof" |
| 58 | "books.thecoded.prof" |
| 59 | "reading.thecoded.prof" |
| 60 | ] (ReverseProxy "generic:1032")) |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 61 | (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString |
Skyler Grey | 1ea7dbd | 2023-12-23 00:08:32 +0000 | [diff] [blame] | 62 | (pkgs.element-web.override { |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 63 | conf = { |
| 64 | default_server_config = |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 65 | lib.pipe ./nginx/clicks.codes/.well-known/matrix [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 66 | builtins.readFile |
| 67 | builtins.fromJSON |
| 68 | ]; |
| 69 | features = { |
| 70 | feature_report_to_moderators = true; |
| 71 | feature_latex_maths = true; |
| 72 | feature_pinning = true; |
| 73 | feature_mjolnir = true; |
| 74 | feature_presence_in_room_list = true; |
| 75 | feature_custom_themes = true; |
| 76 | feature_dehydration = true; |
| 77 | }; |
Skyler Grey | 1ea7dbd | 2023-12-23 00:08:32 +0000 | [diff] [blame] | 78 | setting_defaults = { |
| 79 | "fallbackICEServerAllowed" = true; |
| 80 | "UIFeature.passwordReset" = false; |
| 81 | "UIFeature.deactivate" = false; |
| 82 | }; |
| 83 | show_labs_settings = true; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 84 | default_theme = "dark"; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 85 | disable_guests = true; |
| 86 | disable_3pid_login = true; |
Skyler Grey | 1ea7dbd | 2023-12-23 00:08:32 +0000 | [diff] [blame] | 87 | logout_redirect_url = "https://login.clicks.codes/realms/master/protocol/openid-connect/logout?client_id=matrix"; |
| 88 | sso_redirect_options.immediate = true; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 89 | }; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 90 | })}")) |
| 91 | (Host "api.clicks.codes" |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 92 | (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000"))) |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 93 | (Host "api.coded.codes" |
Skyler Grey | 1886112 | 2023-10-25 21:05:54 +0000 | [diff] [blame] | 94 | (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000"))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 95 | (Host "coded.codes" (Compose [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 96 | (Path "/.well-known/matrix/" |
Skyler Grey | 0de8a08 | 2023-11-21 22:45:29 +0000 | [diff] [blame] | 97 | (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 98 | (Redirect "https://clicks.codes$request_uri") |
| 99 | ])) |
Skyler Grey | 75aa949 | 2023-11-21 00:29:09 +0000 | [diff] [blame] | 100 | (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [ |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 101 | (Path "/_synapse/admin/" (Status 403)) |
Skyler Grey | 7610ce4 | 2023-11-29 19:29:59 +0000 | [diff] [blame] | 102 | (ReverseProxy "generic:1030") |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 103 | ])) |
Skyler Grey | 7610ce4 | 2023-11-29 19:29:59 +0000 | [diff] [blame] | 104 | (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"] |
| 105 | (ReverseProxy "generic:1031")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 106 | ]; |
| 107 | clicks.nginx.serviceAliases = with helpers.nginx; [ |
| 108 | (Aliases "nextcloud.clicks.codes" [ |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 109 | "www.nextcloud.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 110 | ]) |
| 111 | (Aliases "privatebin" [ |
| 112 | "paste.clicks.codes" |
| 113 | "paste.coded.codes" |
| 114 | "paste.thecoded.prof" |
| 115 | "paste.hopescaramels.com" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 116 | "www.paste.clicks.codes" |
| 117 | "www.paste.coded.codes" |
| 118 | "www.paste.thecoded.prof" |
| 119 | "www.paste.hopescaramels.com" |
| 120 | "www.privatebin.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 121 | ]) |
| 122 | ]; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 123 | } |