(add): Nix config, (change): Caddyfile due to IP issues
This commit is contained in:
1 parent
f67e1c184e
commit
1b3c97516c
2 files changed
+41
-1
No files matched your search
@@ -0,0 +1,40 @@
|
|||||||
|
{ config, pkgs, ... }
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
networking.hosts = {
|
||||||
|
"192.168.1.1" = [ "tam.lan" ]; # Change the IP of this line to the IP of the TAM server if applicable.
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users."tam" = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Ticket Auction Manager";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.displayManager.sddm.settings.Autologin = {
|
||||||
|
Session = "plasma.desktop";
|
||||||
|
User = "tam";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
chromium
|
||||||
|
];
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
backend = "docker";
|
||||||
|
containers."tam-client" = {
|
||||||
|
image = "dbob16/tam-client:0.1.0"; # Change image to local repo to avoid pull limits.
|
||||||
|
volumes = [
|
||||||
|
"tam-data:/data"
|
||||||
|
];
|
||||||
|
environment = {
|
||||||
|
HOST = "localhost";
|
||||||
|
PORT = "3000";
|
||||||
|
};
|
||||||
|
extraOptions = ["--network=host"]
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
*:8443 {
|
{$TAM_HOSTNAME:tam.lan}:8443 {
|
||||||
tls internal
|
tls internal
|
||||||
reverse_proxy {$TAM_SERVER:localhost}:8000
|
reverse_proxy {$TAM_SERVER:localhost}:8000
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user