blob: e94d30f63d1b2329644d5327753a494cd0ab9744 [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 Grey2ca6ccd2023-10-14 22:56:43 +00008 (Hosts [ "kavita.coded.codes" "reading.coded.codes" ]
Skyler Greyd550aab2023-10-22 22:57:50 +00009 (ReverseProxy "127.0.0.1:5000"))
Skyler Grey22428b02023-11-19 13:20:56 +000010 (Host "clicks.codes" (Compose [
11 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000012 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey22428b02023-11-19 13:20:56 +000013 (ReverseProxy "127.0.0.1:3000")
14 ]))
15 (Hosts [ "vaultwarden.clicks.codes" "passwords.clicks.codes" ] (ReverseProxy "generic:1028"))
Samuel Shuert45489982023-11-29 15:29:36 -050016 (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 +000017 (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000018 (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ]
Skyler Grey22428b02023-11-19 13:20:56 +000019 (ReverseProxy "generic:1024"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000020 (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ]
Skyler Greyd550aab2023-10-22 22:57:50 +000021 (ReverseProxy "127.0.0.1:9052"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000022 (InsecureHosts [
23 "mail.clicks.codes"
24 "mail.coded.codes"
25 "mail.hopescaramels.com"
26 "autoconfig.coded.codes"
27 "autoconfig.clicks.codes"
28 "autoconfig.hopescaramels.com"
29 "imap.coded.codes"
30 "imap.clicks.codes"
31 "imap.hopescaramels.com"
32 "pop.coded.codes"
33 "pop.clicks.codes"
34 "pop.hopescaramels.com"
35 "smtp.coded.codes"
36 "smtp.clicks.codes"
37 "smtp.hopescaramels.com"
Skyler Grey22428b02023-11-19 13:20:56 +000038 ] (ReverseProxy "generic:1026"))
39 (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString
Skyler Greyfe1740c2023-10-21 01:24:18 +000040 (pkgs.schildichat-web.override {
41 conf = {
42 default_server_config =
Skyler Grey22428b02023-11-19 13:20:56 +000043 lib.pipe ./nginx/clicks.codes/.well-known/matrix [
Skyler Greyfe1740c2023-10-21 01:24:18 +000044 builtins.readFile
45 builtins.fromJSON
46 ];
47 features = {
48 feature_report_to_moderators = true;
49 feature_latex_maths = true;
50 feature_pinning = true;
51 feature_mjolnir = true;
52 feature_presence_in_room_list = true;
53 feature_custom_themes = true;
54 feature_dehydration = true;
55 };
56 setting_defaults = { "fallbackICEServerAllowed" = true; };
57 default_theme = "dark";
Skyler Greyfe1740c2023-10-21 01:24:18 +000058 disable_guests = true;
59 disable_3pid_login = true;
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000060 };
Skyler Greyfe1740c2023-10-21 01:24:18 +000061 })}"))
62 (Host "api.clicks.codes"
Skyler Greyd550aab2023-10-22 22:57:50 +000063 (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000")))
Skyler Greyfe1740c2023-10-21 01:24:18 +000064 (Host "api.coded.codes"
Skyler Grey18861122023-10-25 21:05:54 +000065 (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000")))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000066 (Host "coded.codes" (Compose [
Skyler Greyfe1740c2023-10-21 01:24:18 +000067 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000068 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000069 (Redirect "https://clicks.codes$request_uri")
70 ]))
Skyler Grey75aa9492023-11-21 00:29:09 +000071 (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000072 (Path "/_synapse/admin/" (Status 403))
Skyler Grey7610ce42023-11-29 19:29:59 +000073 (ReverseProxy "generic:1030")
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000074 ]))
Skyler Grey7610ce42023-11-29 19:29:59 +000075 (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"]
76 (ReverseProxy "generic:1031"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000077 ];
78 clicks.nginx.serviceAliases = with helpers.nginx; [
79 (Aliases "nextcloud.clicks.codes" [
80 "cloud.clicks.codes"
Skyler Greye15f5aa2023-10-25 17:13:43 +000081 "www.cloud.clicks.codes"
Skyler Greye15f5aa2023-10-25 17:13:43 +000082 "www.nextcloud.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000083 ])
84 (Aliases "privatebin" [
85 "paste.clicks.codes"
86 "paste.coded.codes"
87 "paste.thecoded.prof"
88 "paste.hopescaramels.com"
Skyler Greye15f5aa2023-10-25 17:13:43 +000089 "www.paste.clicks.codes"
90 "www.paste.coded.codes"
91 "www.paste.thecoded.prof"
92 "www.paste.hopescaramels.com"
93 "www.privatebin.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000094 ])
95 ];
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000096}