blob: 1d231ce9a313c3825e56d4d947e0725c61abd6a7 [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 Grey82e09422024-03-10 14:11:44 +000014 (Hosts [ "vaultwarden.clicks.codes" ] (ReverseProxy "generic:1028"))
15 (Hosts [ "passwords.clicks.codes" ] (RedirectPermanent "https://vaultwarden.clicks.codes"))
Skyler Grey0ad45622024-04-18 10:40:44 +000016 (Host "cloud.clicks.codes" (Path ''~ ^/?([^\r\n]*)$'' (RedirectPermanent "https://nextcloud.clicks.codes/$1")))
Skyler Greyfc048592024-03-10 13:46:17 +000017 (Hosts [
18 "erpnext.clicks.codes"
19 "projects.clicks.codes"
20 "tasks.clicks.codes"
21 "issues.clicks.codes"
22 "kanban.clicks.codes"
23 "taiga.clicks.codes"
24 ] (Redirect "https://frappe.clicks.codes/app"))
Skyler Grey8720ed12024-03-10 13:59:44 +000025 (Hosts [
26 "wiki.clicks.codes"
27 ] (Redirect "https://frappe.clicks.codes/wiki"))
Skyler Greyd550aab2023-10-22 22:57:50 +000028 (Host "login.clicks.codes" (ReverseProxy "127.0.0.1:9083"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000029 (Hosts [ "gerrit.clicks.codes" "git.clicks.codes" ]
Skyler Grey22428b02023-11-19 13:20:56 +000030 (ReverseProxy "generic:1024"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000031 (Hosts [ "grafana.clicks.codes" "logs.clicks.codes" ]
Skyler Greyd550aab2023-10-22 22:57:50 +000032 (ReverseProxy "127.0.0.1:9052"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000033 (InsecureHosts [
34 "mail.clicks.codes"
35 "mail.coded.codes"
36 "mail.hopescaramels.com"
37 "autoconfig.coded.codes"
38 "autoconfig.clicks.codes"
39 "autoconfig.hopescaramels.com"
40 "imap.coded.codes"
41 "imap.clicks.codes"
42 "imap.hopescaramels.com"
43 "pop.coded.codes"
44 "pop.clicks.codes"
45 "pop.hopescaramels.com"
46 "smtp.coded.codes"
47 "smtp.clicks.codes"
48 "smtp.hopescaramels.com"
Skyler Grey22428b02023-11-19 13:20:56 +000049 ] (ReverseProxy "generic:1026"))
Skyler Grey58fbb972023-12-23 02:39:35 +000050 (Hosts [
51 "calibre.coded.codes"
52 "books.coded.codes"
53 "reading.coded.codes"
54 "calibre.thecoded.prof"
55 "books.thecoded.prof"
56 "reading.thecoded.prof"
57 ] (ReverseProxy "generic:1032"))
Skyler Grey22428b02023-11-19 13:20:56 +000058 (Hosts ["matrix.clicks.codes" "matrix.coded.codes"] (Directory "${builtins.toString
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000059 (pkgs.element-web.override {
Skyler Greyfe1740c2023-10-21 01:24:18 +000060 conf = {
61 default_server_config =
Skyler Grey22428b02023-11-19 13:20:56 +000062 lib.pipe ./nginx/clicks.codes/.well-known/matrix [
Skyler Greyfe1740c2023-10-21 01:24:18 +000063 builtins.readFile
64 builtins.fromJSON
65 ];
66 features = {
67 feature_report_to_moderators = true;
68 feature_latex_maths = true;
69 feature_pinning = true;
70 feature_mjolnir = true;
71 feature_presence_in_room_list = true;
72 feature_custom_themes = true;
73 feature_dehydration = true;
74 };
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000075 setting_defaults = {
76 "fallbackICEServerAllowed" = true;
77 "UIFeature.passwordReset" = false;
78 "UIFeature.deactivate" = false;
79 };
80 show_labs_settings = true;
Skyler Greyfe1740c2023-10-21 01:24:18 +000081 default_theme = "dark";
Skyler Greyfe1740c2023-10-21 01:24:18 +000082 disable_guests = true;
83 disable_3pid_login = true;
Skyler Grey1ea7dbd2023-12-23 00:08:32 +000084 logout_redirect_url = "https://login.clicks.codes/realms/master/protocol/openid-connect/logout?client_id=matrix";
85 sso_redirect_options.immediate = true;
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000086 };
Skyler Greyfe1740c2023-10-21 01:24:18 +000087 })}"))
88 (Host "api.clicks.codes"
Skyler Greyd550aab2023-10-22 22:57:50 +000089 (Path "/nucleus/" (ReverseProxy "127.0.0.1:10000")))
Skyler Greyfe1740c2023-10-21 01:24:18 +000090 (Host "api.coded.codes"
Skyler Grey18861122023-10-25 21:05:54 +000091 (Path "/nucleus/" (ReverseProxy "SamuelDesktop:10000")))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000092 (Host "coded.codes" (Compose [
Skyler Greyfe1740c2023-10-21 01:24:18 +000093 (Path "/.well-known/matrix/"
Skyler Grey0de8a082023-11-21 22:45:29 +000094 (CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000095 (Redirect "https://clicks.codes$request_uri")
96 ]))
Skyler Grey75aa9492023-11-21 00:29:09 +000097 (Hosts ["matrix-backend.clicks.codes" "matrix-backend.coded.codes"] (Compose [
Skyler Grey2ca6ccd2023-10-14 22:56:43 +000098 (Path "/_synapse/admin/" (Status 403))
Skyler Grey7610ce42023-11-29 19:29:59 +000099 (ReverseProxy "generic:1030")
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000100 ]))
Skyler Grey7610ce42023-11-29 19:29:59 +0000101 (Hosts ["matrix-sliding-sync.clicks.codes" "matrix-sliding-sync.coded.codes"]
102 (ReverseProxy "generic:1031"))
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000103 ];
104 clicks.nginx.serviceAliases = with helpers.nginx; [
105 (Aliases "nextcloud.clicks.codes" [
Skyler Greye15f5aa2023-10-25 17:13:43 +0000106 "www.nextcloud.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000107 ])
108 (Aliases "privatebin" [
109 "paste.clicks.codes"
110 "paste.coded.codes"
111 "paste.thecoded.prof"
112 "paste.hopescaramels.com"
Skyler Greye15f5aa2023-10-25 17:13:43 +0000113 "www.paste.clicks.codes"
114 "www.paste.coded.codes"
115 "www.paste.thecoded.prof"
116 "www.paste.hopescaramels.com"
117 "www.privatebin.clicks.codes"
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000118 ])
119 ];
Skyler Grey2ca6ccd2023-10-14 22:56:43 +0000120}