blob: 61f8c200dca469fe380450e74033d9e3f8ae51ce [file] [log] [blame]
Skyler Grey2ca6ccd2023-10-14 22:56:43 +00001{ pkgs, helpers, config, lib, ... }: {
2 clicks.nginx.services = with helpers.nginx; [
TheCodedProfaf044562023-10-22 20:04:27 -04003 (Host "signup.hopescaramels.com" (ReverseProxy "caramels:1024"))
TheCodedProf1381cee2023-10-22 20:04:27 -04004 (Host "freeflowtaekwondo.com" (ReverseProxy "generic:1026"))
Skyler Grey18861122023-10-25 21:05:54 +00005 (Host "homebridge.coded.codes" (ReverseProxy "CodedPi:8581"))
6 (Host "codedpc.coded.codes" (ReverseProxy "SamuelDesktop:3389"))
7 (Host "testing.coded.codes" (ReverseProxy "SamuelDesktop:3000"))
Skyler Grey22428b02023-11-19 13:20:56 +00008 (Host "clicks.codes" (Compose [
9 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000010 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey22428b02023-11-19 13:20:56 +000011 (ReverseProxy "127.0.0.1:3000")
12 ]))
Samuel Shuert975c8682024-02-07 17:59:54 -050013 (Hosts [ "resume.coded.codes" "resume.thecoded.prof" ] (ReverseProxy "coded:1024"))
Skyler Grey22428b02023-11-19 13:20:56 +000014 (Hosts [ "vaultwarden.clicks.codes" "passwords.clicks.codes" ] (ReverseProxy "generic:1028"))
Samuel Shuert45489982023-11-29 15:29:36 -050015 (Hosts [ "taiga.clicks.codes" "projects.clicks.codes" "tasks.clicks.codes" "issues.clicks.codes" "kanban.clicks.codes" ] (ReverseProxy "generic:1029"))
Skyler Greyd550aab2023-10-22 22:57:50 +000016 (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000017 (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ]
Skyler Grey22428b02023-11-19 13:20:56 +000018 (ReverseProxy "generic:1024"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000019 (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ]
Skyler Greyd550aab2023-10-22 22:57:50 +000020 (ReverseProxy "127.0.0.1:9052"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000021 (InsecureHosts [
22 "mail.clicks.codes"
23 "mail.coded.codes"
24 "mail.hopescaramels.com"
25 "autoconfig.coded.codes"
26 "autoconfig.clicks.codes"
27 "autoconfig.hopescaramels.com"
28 "imap.coded.codes"
29 "imap.clicks.codes"
30 "imap.hopescaramels.com"
31 "pop.coded.codes"
32 "pop.clicks.codes"
33 "pop.hopescaramels.com"
34 "smtp.coded.codes"
35 "smtp.clicks.codes"
36 "smtp.hopescaramels.com"
Skyler Grey22428b02023-11-19 13:20:56 +000037 ] (ReverseProxy "generic:1026"))
Skyler Grey58fbb972023-12-23 02:39:35 +000038 (Hosts [
39 "calibre.coded.codes"
40 "books.coded.codes"
41 "reading.coded.codes"
42 "calibre.thecoded.prof"
43 "books.thecoded.prof"
44 "reading.thecoded.prof"
45 ] (ReverseProxy "generic:1032"))
Skyler Grey22428b02023-11-19 13:20:56 +000046 (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000047 (pkgs.element-web.override {
Skyler Greyfe1740c2023-10-21 01:24:18 +000048 conf = {
49 default_server_config =
Skyler Grey22428b02023-11-19 13:20:56 +000050 lib.pipe ./nginx/clicks.codes/.well-known/matrix [
Skyler Greyfe1740c2023-10-21 01:24:18 +000051 builtins.readFile
52 builtins.fromJSON
53 ];
54 features = {
55 feature_report_to_moderators = true;
56 feature_latex_maths = true;
57 feature_pinning = true;
58 feature_mjolnir = true;
59 feature_presence_in_room_list = true;
60 feature_custom_themes = true;
61 feature_dehydration = true;
62 };
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000063 setting_defaults = {
64 "fallbackICEServerAllowed" = true;
65 "UIFeature.passwordReset" = false;
66 "UIFeature.deactivate" = false;
67 };
68 show_labs_settings = true;
Skyler Greyfe1740c2023-10-21 01:24:18 +000069 default_theme = "dark";
Skyler Greyfe1740c2023-10-21 01:24:18 +000070 disable_guests = true;
71 disable_3pid_login = true;
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000072 logout_redirect_url = "https://login.clicks.codes/realms/master/protocol/openid-connect/logout?client_id=matrix";
73 sso_redirect_options.immediate = true;
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000074 };
Skyler Greyfe1740c2023-10-21 01:24:18 +000075 })}"))
76 (Host "api.clicks.codes"
Skyler Greyd550aab2023-10-22 22:57:50 +000077 (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000")))
Skyler Greyfe1740c2023-10-21 01:24:18 +000078 (Host "api.coded.codes"
Skyler Grey18861122023-10-25 21:05:54 +000079 (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000")))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000080 (Host "coded.codes" (Compose [
Skyler Greyfe1740c2023-10-21 01:24:18 +000081 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000082 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000083 (Redirect "https://clicks.codes$request_uri")
84 ]))
Skyler Grey75aa9492023-11-21 00:29:09 +000085 (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000086 (Path "/_synapse/admin/" (Status 403))
Skyler Grey7610ce42023-11-29 19:29:59 +000087 (ReverseProxy "generic:1030")
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000088 ]))
Skyler Grey7610ce42023-11-29 19:29:59 +000089 (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"]
90 (ReverseProxy "generic:1031"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000091 ];
92 clicks.nginx.serviceAliases = with helpers.nginx; [
93 (Aliases "nextcloud.clicks.codes" [
94 "cloud.clicks.codes"
Skyler Greye15f5aa2023-10-25 17:13:43 +000095 "www.cloud.clicks.codes"
Skyler Greye15f5aa2023-10-25 17:13:43 +000096 "www.nextcloud.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000097 ])
98 (Aliases "privatebin" [
99 "paste.clicks.codes"
100 "paste.coded.codes"
101 "paste.thecoded.prof"
102 "paste.hopescaramels.com"
Skyler Greye15f5aa2023-10-25 17:13:43 +0000103 "www.paste.clicks.codes"
104 "www.paste.coded.codes"
105 "www.paste.thecoded.prof"
106 "www.paste.hopescaramels.com"
107 "www.privatebin.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000108 ])
109 ];
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000110}