feat: api.cosplay.thewizard.link & cosplay.thewizard.link

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-03-05 16:36:24 -03:00
parent 95a908a535
commit aa9243ac6e
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
5 changed files with 106 additions and 11 deletions

View file

@ -11,6 +11,7 @@
./services/openttd.nix
./services/terraria.nix
./services/hydractify-bot.nix
./services/gakuen-cosplay-api.nix
];
# Home Manager needs a bit of information about you and the paths it should

View file

@ -42,5 +42,16 @@
virtualHosts."shoko.thewizard.link".extraConfig = ''
reverse_proxy 127.0.0.1:8111
'';
virtualHosts."api.cosplay.thewizard.link".extraConfig = ''
reverse_proxy 127.0.0.1:3000
'';
virtualHosts."cosplay.thewizard.link".extraConfig = ''
root * /srv/cosplay
encode
try_files {path} /index.html
file_server
'';
};
}

View file

@ -0,0 +1,16 @@
{ gakuen-cosplay, pkgs, ... }:
{
systemd.user.services.gakuen-cosplay-api = {
Install.WantedBy = [ "default.target" ];
Unit.Description = "Gakuen Cosplay API";
Service = {
ExecStart = "${gakuen-cosplay.packages.${pkgs.system}.backend}/bin/cosplayer_submission";
Restart = "on-failure";
Type = "simple";
WorkingDirectory = "/mnt/internal/shared/work/gakuen/projects/cosplayer_submission/packages/backend";
};
};
}