Add thecoded.prof sites suite to nginx routes
Change-Id: I7b3fc8fe23d28bfb5fc4e02e616b872cdf57d75a
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/675
Tested-by: Samuel Shuert <coded@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/common/nginx-routes.nix b/modules/common/nginx-routes.nix
index 022dd3b..cb7004d 100644
--- a/modules/common/nginx-routes.nix
+++ b/modules/common/nginx-routes.nix
@@ -40,7 +40,8 @@
(CrossOrigin (File ./nginx/clicks.codes/.well-known/matrix)))
(ReverseProxy "127.0.0.1:3000")
]))
- (Hosts [ "resume.coded.codes" "resume.thecoded.prof" ] (ReverseProxy "coded:1024"))
+ (Host "resume.thecoded.prof" (Directory "/var/www/thecoded.prof/sites/resume/dist/"))
+ (Host "thecoded.prof" (Directory "/var/www/thecoded.prof/sites/main/dist/"))
(Hosts [ "vaultwarden.clicks.codes" ] (ReverseProxy "generic:1028"))
(Hosts [ "passwords.clicks.codes" ] (RedirectPermanent "https://vaultwarden.clicks.codes"))
(Host "cloud.clicks.codes" (Path ''~ ^/?([^\r\n]*)$'' (RedirectPermanent "https://nextcloud.clicks.codes/$1")))