dotfiles/hosts/groceries/services/sync/syncyomi.nix
eriedaberrie 696d2d17d9 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2025-02-23 01:52:35 +00:00

25 lines
444 B
Nix

{ config, ... }:
let
cfg = config.services.syncyomi;
baseUrl = "/syncyomi/";
in {
services = {
nginx = {
virtualHosts."sync.eriedaberrie.me" = {
locations.${baseUrl} = {
proxyPass = "http://127.0.0.1:${builtins.toString cfg.settings.port}/";
proxyWebsockets = true;
};
};
};
syncyomi = {
enable = true;
settings = {
inherit baseUrl;
};
};
};
}