blob: ff2cf0d8e3bcc8dc13490acf0c8f519c5706a678 [file] [log] [blame]
Skyler Grey2ca6ccd2023-10-14 22:56:43 +00001{ pkgs, helpers, config, lib, ... }: {
2 clicks.nginx.services = with helpers.nginx; [
Skyler Greyf1c352b2024-04-19 00:07:44 +00003 (Host "guide.trans.gg" (ReverseProxy "generic:1035"))
TheCodedProfaf044562023-10-22 20:04:27 -04004 (Host "signup.hopescaramels.com" (ReverseProxy "caramels:1024"))
TheCodedProf1381cee2023-10-22 20:04:27 -04005 (Host "freeflowtaekwondo.com" (ReverseProxy "generic:1026"))
Skyler Grey18861122023-10-25 21:05:54 +00006 (Host "homebridge.coded.codes" (ReverseProxy "CodedPi:8581"))
7 (Host "codedpc.coded.codes" (ReverseProxy "SamuelDesktop:3389"))
8 (Host "testing.coded.codes" (ReverseProxy "SamuelDesktop:3000"))
Skyler Grey22428b02023-11-19 13:20:56 +00009 (Host "clicks.codes" (Compose [
10 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000011 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey22428b02023-11-19 13:20:56 +000012 (ReverseProxy "127.0.0.1:3000")
13 ]))
Samuel Shuert975c8682024-02-07 17:59:54 -050014 (Hosts [ "resume.coded.codes" "resume.thecoded.prof" ] (ReverseProxy "coded:1024"))
Skyler Grey82e09422024-03-10 14:11:44 +000015 (Hosts [ "vaultwarden.clicks.codes" ] (ReverseProxy "generic:1028"))
16 (Hosts [ "passwords.clicks.codes" ] (RedirectPermanent "https://vaultwarden.clicks.codes"))
Skyler Grey0ad45622024-04-18 10:40:44 +000017 (Host "cloud.clicks.codes" (Path ''~ ^/?([^\r\n]*)$'' (RedirectPermanent "https://nextcloud.clicks.codes/$1")))
Skyler Greyfc048592024-03-10 13:46:17 +000018 (Hosts [
19 "erpnext.clicks.codes"
20 "projects.clicks.codes"
21 "tasks.clicks.codes"
22 "issues.clicks.codes"
23 "kanban.clicks.codes"
24 "taiga.clicks.codes"
25 ] (Redirect "https://frappe.clicks.codes/app"))
Skyler Grey8720ed12024-03-10 13:59:44 +000026 (Hosts [
27 "wiki.clicks.codes"
28 ] (Redirect "https://frappe.clicks.codes/wiki"))
Skyler Greyd550aab2023-10-22 22:57:50 +000029 (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000030 (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ]
Skyler Grey22428b02023-11-19 13:20:56 +000031 (ReverseProxy "generic:1024"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000032 (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ]
Skyler Greyd550aab2023-10-22 22:57:50 +000033 (ReverseProxy "127.0.0.1:9052"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000034 (InsecureHosts [
35 "mail.clicks.codes"
36 "mail.coded.codes"
37 "mail.hopescaramels.com"
38 "autoconfig.coded.codes"
39 "autoconfig.clicks.codes"
40 "autoconfig.hopescaramels.com"
41 "imap.coded.codes"
42 "imap.clicks.codes"
43 "imap.hopescaramels.com"
44 "pop.coded.codes"
45 "pop.clicks.codes"
46 "pop.hopescaramels.com"
47 "smtp.coded.codes"
48 "smtp.clicks.codes"
49 "smtp.hopescaramels.com"
Skyler Grey22428b02023-11-19 13:20:56 +000050 ] (ReverseProxy "generic:1026"))
Skyler Grey58fbb972023-12-23 02:39:35 +000051 (Hosts [
52 "calibre.coded.codes"
53 "books.coded.codes"
54 "reading.coded.codes"
55 "calibre.thecoded.prof"
56 "books.thecoded.prof"
57 "reading.thecoded.prof"
58 ] (ReverseProxy "generic:1032"))
Skyler Grey22428b02023-11-19 13:20:56 +000059 (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000060 (pkgs.element-web.override {
Skyler Greyfe1740c2023-10-21 01:24:18 +000061 conf = {
62 default_server_config =
Skyler Grey22428b02023-11-19 13:20:56 +000063 lib.pipe ./nginx/clicks.codes/.well-known/matrix [
Skyler Greyfe1740c2023-10-21 01:24:18 +000064 builtins.readFile
65 builtins.fromJSON
66 ];
67 features = {
68 feature_report_to_moderators = true;
69 feature_latex_maths = true;
70 feature_pinning = true;
71 feature_mjolnir = true;
72 feature_presence_in_room_list = true;
73 feature_custom_themes = true;
74 feature_dehydration = true;
75 };
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000076 setting_defaults = {
77 "fallbackICEServerAllowed" = true;
78 "UIFeature.passwordReset" = false;
79 "UIFeature.deactivate" = false;
80 };
81 show_labs_settings = true;
Skyler Greyfe1740c2023-10-21 01:24:18 +000082 default_theme = "dark";
Skyler Greyfe1740c2023-10-21 01:24:18 +000083 disable_guests = true;
84 disable_3pid_login = true;
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000085 logout_redirect_url = "https://login.clicks.codes/realms/master/protocol/openid-connect/logout?client_id=matrix";
86 sso_redirect_options.immediate = true;
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000087 };
Skyler Greyfe1740c2023-10-21 01:24:18 +000088 })}"))
89 (Host "api.clicks.codes"
Skyler Greyd550aab2023-10-22 22:57:50 +000090 (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000")))
Skyler Greyfe1740c2023-10-21 01:24:18 +000091 (Host "api.coded.codes"
Skyler Grey18861122023-10-25 21:05:54 +000092 (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000")))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000093 (Host "coded.codes" (Compose [
Skyler Greyfe1740c2023-10-21 01:24:18 +000094 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000095 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000096 (Redirect "https://clicks.codes$request_uri")
97 ]))
Skyler Grey75aa9492023-11-21 00:29:09 +000098 (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000099 (Path "/_synapse/admin/" (Status 403))
Skyler Grey7610ce42023-11-29 19:29:59 +0000100 (ReverseProxy "generic:1030")
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000101 ]))
Skyler Grey7610ce42023-11-29 19:29:59 +0000102 (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"]
103 (ReverseProxy "generic:1031"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000104 ];
105 clicks.nginx.serviceAliases = with helpers.nginx; [
106 (Aliases "nextcloud.clicks.codes" [
Skyler Greye15f5aa2023-10-25 17:13:43 +0000107 "www.nextcloud.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000108 ])
109 (Aliases "privatebin" [
110 "paste.clicks.codes"
111 "paste.coded.codes"
112 "paste.thecoded.prof"
113 "paste.hopescaramels.com"
Skyler Greye15f5aa2023-10-25 17:13:43 +0000114 "www.paste.clicks.codes"
115 "www.paste.coded.codes"
116 "www.paste.thecoded.prof"
117 "www.paste.hopescaramels.com"
118 "www.privatebin.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000119 ])
120 ];
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000121}