Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 1 | { pkgs, helpers, config, lib, ... }: { |
| 2 | clicks.nginx.services = with helpers.nginx; [ |
Samuel Shuert | 307c19a | 2024-06-08 20:35:57 -0400 | [diff] [blame] | 3 | (Host "clicks.domains" (ReverseProxy "192.168.0.2:80")) |
Skyler Grey | 3c24fc0 | 2024-04-19 23:39:39 +0000 | [diff] [blame] | 4 | (Host "guide.trans.gg" (Compose [ |
| 5 | # PWA Manifest |
| 6 | (Path "/_assets/manifest.json" |
| 7 | (File ./nginx/guide.trans.gg/_assets/manifest.json)) |
| 8 | # Browser Config |
| 9 | (Path "/_assets/favicons/browserconfig.xml" |
| 10 | (File ./nginx/guide.trans.gg/_assets/favicons/browserconfig.xml)) |
| 11 | |
| 12 | # Android Favicons |
| 13 | (Path "/_assets/favicons/android-chrome-192x192.png" |
| 14 | (File ./nginx/guide.trans.gg/_assets/favicons/android-chrome-192x192.png)) |
| 15 | (Path "/_assets/favicons/android-chrome-256x256.png" |
| 16 | (File ./nginx/guide.trans.gg/_assets/favicons/android-chrome-256x256.png)) |
| 17 | |
| 18 | # Web Favicons |
| 19 | (Path "/_assets/favicons/favicon-16x16.png" |
| 20 | (File ./nginx/guide.trans.gg/_assets/favicons/favicon-16x16.png)) |
| 21 | (Path "/_assets/favicons/favicon-32x32.png" |
| 22 | (File ./nginx/guide.trans.gg/_assets/favicons/favicon-32x32.png)) |
| 23 | (Path "/_assets/favicons/mstile-150x150.png" |
| 24 | (File ./nginx/guide.trans.gg/_assets/favicons/mstile-150x150.png)) |
| 25 | |
| 26 | # iOS Favicons |
| 27 | (Path "/_assets/favicons/apple-touch-icon.png" |
| 28 | (File ./nginx/guide.trans.gg/_assets/favicons/apple-touch-icon.png)) |
| 29 | (Path "/_assets/favicons/safari-pinned-tab.svg" |
| 30 | (File ./nginx/guide.trans.gg/_assets/favicons/safari-pinned-tab.svg)) |
| 31 | |
| 32 | (ReverseProxy "generic:1035") |
| 33 | ])) |
Skyler Grey | f7eb4ae | 2024-05-06 12:38:44 +0000 | [diff] [blame] | 34 | (SpecificHost "wiki.auxolotl.org" (ReverseProxy "10.0.101.2:1024")) # see aux.nix |
| 35 | (SpecificHost "docs.auxolotl.org" (Path ''~ ^/?([^\r\n]*)$'' (Redirect "https://wiki.auxolotl.org/$1"))) |
TheCodedProf | af04456 | 2023-10-22 20:04:27 -0400 | [diff] [blame] | 36 | (Host "signup.hopescaramels.com" (ReverseProxy "caramels:1024")) |
TheCodedProf | 1381cee | 2023-10-22 20:04:27 -0400 | [diff] [blame] | 37 | (Host "freeflowtaekwondo.com" (ReverseProxy "generic:1026")) |
Skyler Grey | 1886112 | 2023-10-25 21:05:54 +0000 | [diff] [blame] | 38 | (Host "homebridge.coded.codes" (ReverseProxy "CodedPi:8581")) |
| 39 | (Host "codedpc.coded.codes" (ReverseProxy "SamuelDesktop:3389")) |
| 40 | (Host "testing.coded.codes" (ReverseProxy "SamuelDesktop:3000")) |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 41 | (Host "clicks.codes" (Compose [ |
| 42 | (Path "/.well-known/matrix/" |
Skyler Grey | 0de8a08 | 2023-11-21 22:45:29 +0000 | [diff] [blame] | 43 | (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix))) |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 44 | (ReverseProxy "127.0.0.1:3000") |
| 45 | ])) |
Samuel Shuert | 50bbc8f | 2024-04-27 16:32:32 -0400 | [diff] [blame] | 46 | (Host "resume.thecoded.prof" (Directory "/var/www/thecoded.prof/sites/resume/dist/")) |
| 47 | (Host "thecoded.prof" (Directory "/var/www/thecoded.prof/sites/main/dist/")) |
Skyler Grey | 82e0942 | 2024-03-10 14:11:44 +0000 | [diff] [blame] | 48 | (Hosts [ "vaultwarden.clicks.codes" ] (ReverseProxy "generic:1028")) |
| 49 | (Hosts [ "passwords.clicks.codes" ] (RedirectPermanent "https://vaultwarden.clicks.codes")) |
Skyler Grey | 0ad4562 | 2024-04-18 10:40:44 +0000 | [diff] [blame] | 50 | (Host "cloud.clicks.codes" (Path ''~ ^/?([^\r\n]*)$'' (RedirectPermanent "https://nextcloud.clicks.codes/$1"))) |
Skyler Grey | fc04859 | 2024-03-10 13:46:17 +0000 | [diff] [blame] | 51 | (Hosts [ |
| 52 | "erpnext.clicks.codes" |
| 53 | "projects.clicks.codes" |
| 54 | "tasks.clicks.codes" |
| 55 | "issues.clicks.codes" |
| 56 | "kanban.clicks.codes" |
| 57 | "taiga.clicks.codes" |
| 58 | ] (Redirect "https://frappe.clicks.codes/app")) |
Skyler Grey | 8720ed1 | 2024-03-10 13:59:44 +0000 | [diff] [blame] | 59 | (Hosts [ |
| 60 | "wiki.clicks.codes" |
| 61 | ] (Redirect "https://frappe.clicks.codes/wiki")) |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 62 | (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 63 | (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ] |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 64 | (ReverseProxy "generic:1024")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 65 | (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ] |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 66 | (ReverseProxy "127.0.0.1:9052")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 67 | (InsecureHosts [ |
| 68 | "mail.clicks.codes" |
| 69 | "mail.coded.codes" |
| 70 | "mail.hopescaramels.com" |
| 71 | "autoconfig.coded.codes" |
| 72 | "autoconfig.clicks.codes" |
| 73 | "autoconfig.hopescaramels.com" |
| 74 | "imap.coded.codes" |
| 75 | "imap.clicks.codes" |
| 76 | "imap.hopescaramels.com" |
| 77 | "pop.coded.codes" |
| 78 | "pop.clicks.codes" |
| 79 | "pop.hopescaramels.com" |
| 80 | "smtp.coded.codes" |
| 81 | "smtp.clicks.codes" |
| 82 | "smtp.hopescaramels.com" |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 83 | ] (ReverseProxy "generic:1026")) |
Skyler Grey | 58fbb97 | 2023-12-23 02:39:35 +0000 | [diff] [blame] | 84 | (Hosts [ |
| 85 | "calibre.coded.codes" |
| 86 | "books.coded.codes" |
| 87 | "reading.coded.codes" |
| 88 | "calibre.thecoded.prof" |
| 89 | "books.thecoded.prof" |
| 90 | "reading.thecoded.prof" |
| 91 | ] (ReverseProxy "generic:1032")) |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 92 | (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString |
Skyler Grey | 1ea7dbd | 2023-12-23 00:08:32 +0000 | [diff] [blame] | 93 | (pkgs.element-web.override { |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 94 | conf = { |
| 95 | default_server_config = |
Skyler Grey | 22428b0 | 2023-11-19 13:20:56 +0000 | [diff] [blame] | 96 | lib.pipe ./nginx/clicks.codes/.well-known/matrix [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 97 | builtins.readFile |
| 98 | builtins.fromJSON |
| 99 | ]; |
| 100 | features = { |
| 101 | feature_report_to_moderators = true; |
| 102 | feature_latex_maths = true; |
| 103 | feature_pinning = true; |
| 104 | feature_mjolnir = true; |
| 105 | feature_presence_in_room_list = true; |
| 106 | feature_custom_themes = true; |
| 107 | feature_dehydration = true; |
| 108 | }; |
Skyler Grey | 1ea7dbd | 2023-12-23 00:08:32 +0000 | [diff] [blame] | 109 | setting_defaults = { |
| 110 | "fallbackICEServerAllowed" = true; |
| 111 | "UIFeature.passwordReset" = false; |
| 112 | "UIFeature.deactivate" = false; |
| 113 | }; |
| 114 | show_labs_settings = true; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 115 | default_theme = "dark"; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 116 | disable_guests = true; |
| 117 | disable_3pid_login = true; |
Skyler Grey | 1ea7dbd | 2023-12-23 00:08:32 +0000 | [diff] [blame] | 118 | logout_redirect_url = "https://login.clicks.codes/realms/master/protocol/openid-connect/logout?client_id=matrix"; |
| 119 | sso_redirect_options.immediate = true; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 120 | }; |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 121 | })}")) |
| 122 | (Host "api.clicks.codes" |
Skyler Grey | d550aab | 2023-10-22 22:57:50 +0000 | [diff] [blame] | 123 | (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000"))) |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 124 | (Host "api.coded.codes" |
Skyler Grey | 1886112 | 2023-10-25 21:05:54 +0000 | [diff] [blame] | 125 | (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000"))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 126 | (Host "coded.codes" (Compose [ |
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 127 | (Path "/.well-known/matrix/" |
Skyler Grey | 0de8a08 | 2023-11-21 22:45:29 +0000 | [diff] [blame] | 128 | (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix))) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 129 | (Redirect "https://clicks.codes$request_uri") |
| 130 | ])) |
Skyler Grey | 75aa949 | 2023-11-21 00:29:09 +0000 | [diff] [blame] | 131 | (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [ |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 132 | (Path "/_synapse/admin/" (Status 403)) |
Skyler Grey | 7610ce4 | 2023-11-29 19:29:59 +0000 | [diff] [blame] | 133 | (ReverseProxy "generic:1030") |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 134 | ])) |
Skyler Grey | 7610ce4 | 2023-11-29 19:29:59 +0000 | [diff] [blame] | 135 | (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"] |
| 136 | (ReverseProxy "generic:1031")) |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 137 | ]; |
| 138 | clicks.nginx.serviceAliases = with helpers.nginx; [ |
| 139 | (Aliases "nextcloud.clicks.codes" [ |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 140 | "www.nextcloud.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 141 | ]) |
| 142 | (Aliases "privatebin" [ |
| 143 | "paste.clicks.codes" |
| 144 | "paste.coded.codes" |
| 145 | "paste.thecoded.prof" |
| 146 | "paste.hopescaramels.com" |
Skyler Grey | e15f5aa | 2023-10-25 17:13:43 +0000 | [diff] [blame] | 147 | "www.paste.clicks.codes" |
| 148 | "www.paste.coded.codes" |
| 149 | "www.paste.thecoded.prof" |
| 150 | "www.paste.hopescaramels.com" |
| 151 | "www.privatebin.clicks.codes" |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 152 | ]) |
| 153 | ]; |
Skyler Grey | 2ca6ccd | 2023-10-14 22:56:43 +0000 | [diff] [blame] | 154 | } |