mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-19 12:31:28 -04:00
migrate services
This commit is contained in:
parent
f0b3b2a4b4
commit
891be2b165
15 changed files with 1136 additions and 0 deletions
66
modules/services/ferdium-server/default.nix
Normal file
66
modules/services/ferdium-server/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
volumePath = "/overseer/services";
|
||||
in {
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${volumePath}/ferdium-server/data"
|
||||
"d ${volumePath}/ferdium-server/app/recipes"
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"ferdium.wanderingcrow.net" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "ferdium.wanderingcrow.net";
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://10.88.0.13:3333";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers = {
|
||||
"ferdium-api" = {
|
||||
image = "ferdium/ferdium-server:latest";
|
||||
volumes = [
|
||||
"${volumePath}/ferdium-server/data:/data"
|
||||
"${volumePath}/ferdium-server/app/recipes:/app/recipes"
|
||||
];
|
||||
extraOptions = ["--ip=10.88.0.13"];
|
||||
environment = {
|
||||
NODE_ENV = "production";
|
||||
APP_URL = "ferdium.wanderingcrow.net";
|
||||
DB_CONNECTION = "sqlite";
|
||||
DB_HOST = "127.0.0.1";
|
||||
DB_PORT = "3306";
|
||||
DB_USER = "root";
|
||||
DB_PASSWORD = "password"; # Do I need to change this for sqlite I dont think so
|
||||
DB_DATABASE = "ferdium";
|
||||
DB_SSL = "false";
|
||||
MAIL_CONNECTION = "smtp";
|
||||
SMTP_HOST = "127.0.0.1";
|
||||
SMTP_PORT = "2525";
|
||||
MAIL_SSL = "false";
|
||||
MAIL_USERNAME = "username";
|
||||
MAIL_PASSWORD = "password";
|
||||
MAIL_SENDER = "noreply@mail.wanderingcrow.net";
|
||||
IS_CREATION_ENABLED = "true";
|
||||
IS_DASHBOARD_ENABLED = "true";
|
||||
IS_REGISTRATION_ENABLED = "true";
|
||||
CONNECT_WITH_FRANZ = "false";
|
||||
DATA_DIR = "/data";
|
||||
JWT_USE_PEM = "true";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue