rico2: setup adtya.xyz
This commit is contained in:
parent
a86dd2d5f1
commit
d854bad66c
6 changed files with 44 additions and 2 deletions
14
hosts/rico2/containers/adtya.xyz.nix
Normal file
14
hosts/rico2/containers/adtya.xyz.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
virtualisation.oci-containers.containers."adtya.xyz" = {
|
||||
image = "ghcr.io/adtya/adtya.xyz:latest";
|
||||
ports = ["3000:80"];
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."adtya.xyz" = {
|
||||
hostName = "adtya.xyz";
|
||||
serverAliases = ["www.adtya.xyz" "adtya.xyz"];
|
||||
extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:3000
|
||||
'';
|
||||
};
|
||||
}
|
7
hosts/rico2/containers/default.nix
Normal file
7
hosts/rico2/containers/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{...}: {
|
||||
imports = [./adtya.xyz.nix];
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
./hardware
|
||||
./programs
|
||||
./services
|
||||
./containers
|
||||
./security.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs,...}: {
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./neovim.nix
|
||||
./starship.nix
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: let
|
||||
{...}: let
|
||||
caddy_config = (import ../../../secrets.nix).caddy_config;
|
||||
in {
|
||||
services.caddy = {
|
||||
|
|
|
@ -25,5 +25,25 @@ in {
|
|||
type = tcp
|
||||
local_port = 22
|
||||
remote_port = 6002
|
||||
|
||||
[http.adtya.xyz]
|
||||
type = http
|
||||
custom_domains = adtya.xyz
|
||||
local_port = 80
|
||||
|
||||
[https.adtya.xyz]
|
||||
type = https
|
||||
custom_domains = adtya.xyz
|
||||
local_port = 443
|
||||
|
||||
[http.www.adtya.xyz]
|
||||
type = http
|
||||
custom_domains = www.adtya.xyz
|
||||
local_port = 80
|
||||
|
||||
[https.www.adtya.xyz]
|
||||
type = https
|
||||
custom_domains = www.adtya.xyz
|
||||
local_port = 443
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue