Skip to content

Commit

Permalink
redfox/services: add bin
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Jan 21, 2024
1 parent 9c92fb9 commit 56f51e4
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 67 deletions.
88 changes: 26 additions & 62 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,11 @@
agenix.url = "github:ryantm/agenix";
factorio-versions.url = "github:ocfox/factorio-versions";
nur.url = "github:nix-community/NUR";
bin.url = "github:ocfox/bin";
haumea = {
url = "github:nix-community/haumea";
inputs.nixpkgs.follows = "nixpkgs";
};
bin = {
url = "github:w4/bin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
1 change: 1 addition & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ in
system = "x86_64-linux";
modules = [
./redfox/_hardware.nix
inputs.bin.nixosModules.default
redfox-module
];
specialArgs = { inherit inputs username home; };
Expand Down
20 changes: 19 additions & 1 deletion hosts/redfox/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,34 @@
enable = true;
};

bin-paste.enable = true;

caddy = {
enable = true;
email = "i@ocfox.me";
virtualHosts = {

"shiori" = {
hostName = "shiori.ocfox.me";
extraConfig = ''
reverse_proxy 127.0.0.1:8080
reverse_proxy localhost:8080
'';
};

"bin" = {
hostName = "pb.ocfox.me";
extraConfig = ''
reverse_proxy localhost:8000
'';
};

"bin2" = {
hostName = "pastb.in";
extraConfig = ''
reverse_proxy localhost:8000
'';
};

};
};
}

0 comments on commit 56f51e4

Please sign in to comment.