mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-22 22:11:31 -04:00
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
volumePath = "/overseer/services";
|
|
maintFile = lib.custom.relativeToRoot "assets/maint.html";
|
|
in
|
|
{
|
|
systemd.tmpfiles.rules = [
|
|
"d ${volumePath}/flamesites 0750 crow"
|
|
"d ${volumePath}/flamesites/swgalaxyproject 0750 crow"
|
|
"d ${volumePath}/flamesites/nnsbluegrass 0750 crow"
|
|
];
|
|
|
|
# systemd.timers.flamesite-backup = {
|
|
# enable = false;
|
|
# wantedBy = [ "timers.target" ];
|
|
# timerConfig = {
|
|
# OnBootSec = "1hr";
|
|
# OnUnitActiveSec = "1hr";
|
|
# Unit = "flamesite-backup.service";
|
|
# };
|
|
# };
|
|
|
|
# systemd.services.flamesite-backup = {
|
|
# # ${pkgs.podman}/bin/podman exec swgal_db_1 sh -c 'exec mysqldump --no-tablespaces -usgr_user -psgr_pass sgr_db' > ${volumePath}/flamesites/swgalaxyproject/db.sql
|
|
# # ${pkgs.podman}/bin/podman exec nnsbluegrass_db_1 sh -c 'exec mysqldump --no-tablespaces -unns_user -pnns_pass nns_db' > ${volumePath}/flamesites/nnsbluegrass/db.sql
|
|
# script = ''
|
|
# '';
|
|
# serviceConfig = {
|
|
# Type = "oneshot";
|
|
# User = "crow";
|
|
# };
|
|
# };
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"swgalaxyproject.com".extraConfig = ''
|
|
reverse_proxy http://localhost:8080
|
|
'';
|
|
"nnsbluegrass.com".extraConfig = ''
|
|
reverse_proxy http://localhost:9821
|
|
'';
|
|
};
|
|
};
|
|
}
|