commit 07e5eb6b4de75df47aff46fcc906c8f3bd6d65e1 Author: mat ess Date: Mon Jul 4 17:26:51 2022 -0400 Add initial services diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81297bd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.nvimlog diff --git a/firefly/fly.toml b/firefly/fly.toml new file mode 100644 index 0000000..75fc415 --- /dev/null +++ b/firefly/fly.toml @@ -0,0 +1,51 @@ +# fly.toml file generated for firefly-mat-services on 2022-07-03T14:06:52-04:00 + +app = "firefly-mat-services" + +kill_signal = "SIGINT" +kill_timeout = 5 + +[build] + image = "fireflyiii/core:latest" + +[env] + APP_URL = "https://firefly.mat.services" + DB_CONNECTION = "sqlite" + SITE_OWNER = "mat@mat.services" + TZ = "America/New_York" + TRUSTED_PROXIES = "**" + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[mounts] + destination = "/var/www/html/storage/upload" + source = "firefly_data" + +[[services]] + http_checks = [] + internal_port = 8080 + processes = ["app"] + protocol = "tcp" + script_checks = [] + + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + type = "connections" + + [[services.ports]] + force_https = true + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 0 + timeout = "2s" diff --git a/gitea/fly.toml b/gitea/fly.toml new file mode 100644 index 0000000..aee0f1c --- /dev/null +++ b/gitea/fly.toml @@ -0,0 +1,48 @@ +# fly.toml file generated for gitea-mat-services on 2022-07-02T22:14:05-04:00 + +app = "gitea-mat-services" + +kill_signal = "SIGINT" +kill_timeout = 5 + +[build] + image = "gitea/gitea:latest" + +[env] + GITEA__database__DB_TYPE = "sqlite3" + GITEA__database__PATH = "/data/gitea/gitea.db" + GITEA__server__DOMAIN = "git.mat.services" + GITEA__server__SSH_DOMAIN = "git.mat.services" + GITEA__server__ROOT_URL = "https://git.mat.services" + GITEA__security__INSTALL_LOCK = "true" # Don't show installer + GITEA__service__DISABLE_REGISTRATION = "true" + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[mounts] + destination = "/data" + source = "gitea_data" + +# ssh traffic +[[services]] + internal_port = 22 + protocol = "tcp" + [[services.ports]] + port = 22 + +# https traffic +[[services]] + internal_port = 3000 + protocol = "tcp" + + [[services.ports]] + handlers = ["http"] + force_https = true + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + diff --git a/vaultwarden/fly.toml b/vaultwarden/fly.toml new file mode 100644 index 0000000..148883f --- /dev/null +++ b/vaultwarden/fly.toml @@ -0,0 +1,46 @@ +# fly.toml file generated for vaultwarden-mat-services on 2022-07-04T15:45:36-04:00 + +app = "vaultwarden-mat-services" + +kill_signal = "SIGINT" +kill_timeout = 5 + +[build] + image = "vaultwarden/server:latest" + +[env] + DOMAIN = "https://vault.mat.services" + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[mounts] + destination = "/data" + source = "vaultwarden_data" + +[[services]] + http_checks = [] + internal_port = 80 + processes = ["app"] + protocol = "tcp" + script_checks = [] + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + type = "connections" + + [[services.ports]] + force_https = true + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 + + [[services.tcp_checks]] + grace_period = "1s" + interval = "15s" + restart_limit = 0 + timeout = "2s"