wow
This commit is contained in:
parent
6ad3f123b7
commit
9bbceb15fd
9 changed files with 43 additions and 16 deletions
|
|
@ -143,10 +143,6 @@ in
|
|||
}
|
||||
'';
|
||||
|
||||
virtualHosts."cache.mizuki.guru".extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:5000
|
||||
'';
|
||||
|
||||
virtualHosts."paste.mizuki.guru".extraConfig = ''
|
||||
reverse_proxy 10.11.8.102:11108
|
||||
'';
|
||||
|
|
@ -182,6 +178,10 @@ in
|
|||
reverse_proxy 127.0.0.1:4321
|
||||
'';
|
||||
|
||||
virtualHosts."cfwithoutincident.imnya.ng".extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:31774
|
||||
'';
|
||||
|
||||
virtualHosts."stream.mizuki.guru".extraConfig = ''
|
||||
handle /live/* {
|
||||
reverse_proxy 127.0.0.1:10023
|
||||
|
|
|
|||
25
hosts/server/natsu/services/cfwithoutincident.nix
Normal file
25
hosts/server/natsu/services/cfwithoutincident.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.services.cfwithoutincident = {
|
||||
description = "Cloudflare Status D-Day dashboard";
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "imnyang";
|
||||
Group = "users";
|
||||
WorkingDirectory = "/home/imnyang/git/imnyang/cfwithoutincident";
|
||||
Environment = [
|
||||
"PORT=31774"
|
||||
];
|
||||
ExecStart = "${pkgs.bun}/bin/bun run src/index.ts";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
|
||||
path = [ pkgs.bun ];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue