Compare commits
4 Commits
c565aba76c
...
75c90c4511
| Author | SHA1 | Date | |
|---|---|---|---|
| 75c90c4511 | |||
| d717104a8b | |||
| 28182852fc | |||
| 855850196f |
@@ -17,14 +17,12 @@ in
|
||||
fileSystems."/data/media" = {
|
||||
device = "//fractal/media";
|
||||
fsType = "cifs";
|
||||
options =
|
||||
[ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
|
||||
options = [ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
|
||||
};
|
||||
|
||||
fileSystems."/data/shared" = {
|
||||
device = "//fractal/shared";
|
||||
fsType = "cifs";
|
||||
options =
|
||||
[ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
|
||||
options = [ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.kopia
|
||||
];
|
||||
environment.systemPackages = [ pkgs.kopia ];
|
||||
|
||||
# systemd = {
|
||||
# services = {
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.tailscale;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ pkgs, inputs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.custom.impermanence;
|
||||
in
|
||||
|
||||
@@ -6,7 +6,5 @@
|
||||
];
|
||||
networking.hostName = "kopia";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kopia
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ kopia ];
|
||||
}
|
||||
|
||||
44
services/titiler.hcl
Normal file
44
services/titiler.hcl
Normal file
@@ -0,0 +1,44 @@
|
||||
job "titiler" {
|
||||
datacenters = ["alo"]
|
||||
|
||||
group "web" {
|
||||
network {
|
||||
port "http" {
|
||||
to = 8000
|
||||
}
|
||||
}
|
||||
|
||||
task "server" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "ghcr.io/developmentseed/titiler:latest"
|
||||
ports = ["http"]
|
||||
volumes = [
|
||||
"/data/shared/alo_gis/drone_images:/data:ro",
|
||||
]
|
||||
}
|
||||
|
||||
env {
|
||||
PORT = "8000"
|
||||
WORKERS_PER_CORE = "1"
|
||||
}
|
||||
|
||||
service {
|
||||
name = "titiler"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.titiler.entryPoints=websecure",
|
||||
#"traefik.http.routers.titiler.middlewares=authentik@file",
|
||||
]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 1000
|
||||
memory = 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,9 @@ job "traefik" {
|
||||
port "ssh" {
|
||||
static = "2222"
|
||||
}
|
||||
port "ntrip" {
|
||||
static = "2101"
|
||||
}
|
||||
port "admin" {
|
||||
#host_network = "tailscale"
|
||||
static = "9002"
|
||||
@@ -55,7 +58,7 @@ job "traefik" {
|
||||
|
||||
config {
|
||||
image = "traefik:latest"
|
||||
ports = ["http", "https", "admin", "http4proxy"]
|
||||
ports = ["http", "https", "admin", "http4proxy", "ssh", "ntrip"]
|
||||
network_mode = "host"
|
||||
volumes = [
|
||||
"local/traefik.yml:/etc/traefik/traefik.yml",
|
||||
@@ -131,6 +134,9 @@ entryPoints:
|
||||
|
||||
ssh:
|
||||
address: ":{{{ env "NOMAD_PORT_ssh" }}}"
|
||||
|
||||
ntrip:
|
||||
address: ":{{{ env "NOMAD_PORT_ntrip" }}}"
|
||||
EOH
|
||||
destination = "local/traefik.yml"
|
||||
change_mode = "noop"
|
||||
|
||||
Reference in New Issue
Block a user