blob: d01e84cb74c13a433b7e25ea23501c09c1f2fe92 [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"))
Skyler Greyfc048592024-03-10 13:46:17 +000015 (Hosts [
16 "erpnext.clicks.codes"
17 "projects.clicks.codes"
18 "tasks.clicks.codes"
19 "issues.clicks.codes"
20 "kanban.clicks.codes"
21 "taiga.clicks.codes"
22 ] (Redirect "https://frappe.clicks.codes/app"))
Skyler Greyd550aab2023-10-22 22:57:50 +000023 (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000024 (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ]
Skyler Grey22428b02023-11-19 13:20:56 +000025 (ReverseProxy "generic:1024"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000026 (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ]
Skyler Greyd550aab2023-10-22 22:57:50 +000027 (ReverseProxy "127.0.0.1:9052"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000028 (InsecureHosts [
29 "mail.clicks.codes"
30 "mail.coded.codes"
31 "mail.hopescaramels.com"
32 "autoconfig.coded.codes"
33 "autoconfig.clicks.codes"
34 "autoconfig.hopescaramels.com"
35 "imap.coded.codes"
36 "imap.clicks.codes"
37 "imap.hopescaramels.com"
38 "pop.coded.codes"
39 "pop.clicks.codes"
40 "pop.hopescaramels.com"
41 "smtp.coded.codes"
42 "smtp.clicks.codes"
43 "smtp.hopescaramels.com"
Skyler Grey22428b02023-11-19 13:20:56 +000044 ] (ReverseProxy "generic:1026"))
Skyler Grey58fbb972023-12-23 02:39:35 +000045 (Hosts [
46 "calibre.coded.codes"
47 "books.coded.codes"
48 "reading.coded.codes"
49 "calibre.thecoded.prof"
50 "books.thecoded.prof"
51 "reading.thecoded.prof"
52 ] (ReverseProxy "generic:1032"))
Skyler Grey22428b02023-11-19 13:20:56 +000053 (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000054 (pkgs.element-web.override {
Skyler Greyfe1740c2023-10-21 01:24:18 +000055 conf = {
56 default_server_config =
Skyler Grey22428b02023-11-19 13:20:56 +000057 lib.pipe ./nginx/clicks.codes/.well-known/matrix [
Skyler Greyfe1740c2023-10-21 01:24:18 +000058 builtins.readFile
59 builtins.fromJSON
60 ];
61 features = {
62 feature_report_to_moderators = true;
63 feature_latex_maths = true;
64 feature_pinning = true;
65 feature_mjolnir = true;
66 feature_presence_in_room_list = true;
67 feature_custom_themes = true;
68 feature_dehydration = true;
69 };
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000070 setting_defaults = {
71 "fallbackICEServerAllowed" = true;
72 "UIFeature.passwordReset" = false;
73 "UIFeature.deactivate" = false;
74 };
75 show_labs_settings = true;
Skyler Greyfe1740c2023-10-21 01:24:18 +000076 default_theme = "dark";
Skyler Greyfe1740c2023-10-21 01:24:18 +000077 disable_guests = true;
78 disable_3pid_login = true;
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000079 logout_redirect_url = "https://login.clicks.codes/realms/master/protocol/openid-connect/logout?client_id=matrix";
80 sso_redirect_options.immediate = true;
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000081 };
Skyler Greyfe1740c2023-10-21 01:24:18 +000082 })}"))
83 (Host "api.clicks.codes"
Skyler Greyd550aab2023-10-22 22:57:50 +000084 (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000")))
Skyler Greyfe1740c2023-10-21 01:24:18 +000085 (Host "api.coded.codes"
Skyler Grey18861122023-10-25 21:05:54 +000086 (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000")))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000087 (Host "coded.codes" (Compose [
Skyler Greyfe1740c2023-10-21 01:24:18 +000088 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000089 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000090 (Redirect "https://clicks.codes$request_uri")
91 ]))
Skyler Grey75aa9492023-11-21 00:29:09 +000092 (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000093 (Path "/_synapse/admin/" (Status 403))
Skyler Grey7610ce42023-11-29 19:29:59 +000094 (ReverseProxy "generic:1030")
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000095 ]))
Skyler Grey7610ce42023-11-29 19:29:59 +000096 (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"]
97 (ReverseProxy "generic:1031"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000098 ];
99 clicks.nginx.serviceAliases = with helpers.nginx; [
100 (Aliases "nextcloud.clicks.codes" [
101 "cloud.clicks.codes"
Skyler Greye15f5aa2023-10-25 17:13:43 +0000102 "www.cloud.clicks.codes"
Skyler Greye15f5aa2023-10-25 17:13:43 +0000103 "www.nextcloud.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000104 ])
105 (Aliases "privatebin" [
106 "paste.clicks.codes"
107 "paste.coded.codes"
108 "paste.thecoded.prof"
109 "paste.hopescaramels.com"
Skyler Greye15f5aa2023-10-25 17:13:43 +0000110 "www.paste.clicks.codes"
111 "www.paste.coded.codes"
112 "www.paste.thecoded.prof"
113 "www.paste.hopescaramels.com"
114 "www.privatebin.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000115 ])
116 ];
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000117}