rename nodes and add runner for gitea instance
This commit is contained in:
31
hosts/thea/striped/back.nix
Normal file
31
hosts/thea/striped/back.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{inputs, ...}:
|
||||
let
|
||||
striped-back = inputs.striped-back;
|
||||
in {
|
||||
imports = [
|
||||
striped-back.nixosModules.default
|
||||
];
|
||||
|
||||
services.striped-back-api = {
|
||||
enable = true;
|
||||
|
||||
nginx = {
|
||||
enable = true;
|
||||
useSSL = true;
|
||||
};
|
||||
|
||||
socket.enable = true;
|
||||
|
||||
settings.django = {
|
||||
allowed-hosts = ["striped-api.shobu.fr"];
|
||||
debug = true;
|
||||
databases = {
|
||||
default = {
|
||||
ENGINE = "django.db.backends.sqlite3";
|
||||
NAME = "/var/lib/striped_back_api/db.sqlite3";
|
||||
};
|
||||
};
|
||||
media-root = "/var/lib/striped_back_api/media";
|
||||
};
|
||||
};
|
||||
}
|
||||
5
hosts/thea/striped/default.nix
Normal file
5
hosts/thea/striped/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{striped-back, striped-front, ...}:{
|
||||
imports = [
|
||||
./back.nix
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user