mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
trucksimulator-images: move to main domain
This commit is contained in:
parent
25ac340213
commit
f717779d32
3 changed files with 21 additions and 28 deletions
24
flake.lock
24
flake.lock
|
@ -180,11 +180,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709938482,
|
||||
"narHash": "sha256-2Vw2WOFmEXWQH8ziFNOr0U48Guh5FacuD6BOEIcE99s=",
|
||||
"lastModified": 1710062421,
|
||||
"narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "17431970b4ebc75a92657101ccffcfc9e1f9d8f0",
|
||||
"rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -281,11 +281,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709906691,
|
||||
"narHash": "sha256-206XMy1NGW42bnHukJl5W2F90yHNoJc7+H3i+/8i2Pg=",
|
||||
"lastModified": 1710040110,
|
||||
"narHash": "sha256-PNAV8VdZkNoSGQHGQWDefNarl0BtKjVMCCzu16+vsr4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "2ad5ebce1e1be47a8cf330d85265ac09ffa15178",
|
||||
"rev": "851fcfd130597c5c91071d46275111522d4fd595",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -296,11 +296,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1709703039,
|
||||
"narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
|
||||
"lastModified": 1709961763,
|
||||
"narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
|
||||
"rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -488,11 +488,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709987509,
|
||||
"narHash": "sha256-q7iK2q1Sff0FQfsp4G5wX0A8r+k1p6XLOlrICueXtlI=",
|
||||
"lastModified": 1710096282,
|
||||
"narHash": "sha256-t4190TfQUJoqaFEUX4DNGMDaQ+rJJxffwir0EEwnfDY=",
|
||||
"owner": "rouven0",
|
||||
"repo": "TruckSimulatorBot",
|
||||
"rev": "db517d53381e3ccea75653e8d29a68d0800cb8c0",
|
||||
"rev": "da4e4e1908aebc93744cbbe9a7867a9b60da02e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -4,15 +4,11 @@ let
|
|||
$TTL 3600
|
||||
$ORIGIN rfive.de.
|
||||
|
||||
rfive.de. 86400 IN SOA ns.rfive.de. hostmaster.rfive.de. 2024030838 10800 3600 604800 3600
|
||||
@ NS ns0.rfive.de.
|
||||
rfive.de. 86400 IN SOA ns.inwx.de. hostmaster.rfive.de. 2024031009 10800 3600 604800 3600
|
||||
@ NS ns.inwx.de.
|
||||
@ NS ns2.inwx.de.
|
||||
@ NS ns3.inwx.eu.
|
||||
|
||||
ns0 A 23.88.121.184
|
||||
ns0 AAAA 2a01:4f8:c012:49de::1
|
||||
|
||||
@ A 23.88.121.184
|
||||
@ AAAA 2a01:4f8:c012:49de::1
|
||||
|
||||
|
@ -40,13 +36,13 @@ let
|
|||
|
||||
cache CNAME nuc.rfive.de.
|
||||
chat CNAME nuc.rfive.de.
|
||||
img.trucks CNAME falkenstein.rfive.de.
|
||||
matrix CNAME nuc.rfive.de.
|
||||
seafile CNAME nuc.rfive.de.
|
||||
vault CNAME nuc.rfive.de.
|
||||
|
||||
purge CNAME falkenstein.rfive.de.
|
||||
rspamd CNAME falkenstein.rfive.de.
|
||||
seafile CNAME nuc.rfive.de.
|
||||
trucks CNAME falkenstein.rfive.de.
|
||||
vault CNAME nuc.rfive.de.
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
@ -63,6 +59,7 @@ in
|
|||
also-notify {185.181.104.96;};
|
||||
dnssec-policy default;
|
||||
inline-signing yes;
|
||||
serial-update-method date;
|
||||
'';
|
||||
file = "${directory}/rfive.de.zone.txt";
|
||||
};
|
||||
|
|
|
@ -24,20 +24,16 @@ in
|
|||
ensureDatabases = [ "trucksimulator" ];
|
||||
};
|
||||
services.nginx.virtualHosts = {
|
||||
"img.${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}";
|
||||
};
|
||||
};
|
||||
"${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/invite".return = " 301 https://discord.com/api/oauth2/authorize?client_id=831052837353816066&permissions=262144&scope=bot%20applications.commands";
|
||||
locations."/invite".return = "301 https://discord.com/api/oauth2/authorize?client_id=831052837353816066&permissions=262144&scope=bot%20applications.commands";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.listenPort}";
|
||||
};
|
||||
locations."/images/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}/";
|
||||
};
|
||||
locations."/docs" = {
|
||||
root = "${trucksimulatorbot.packages.x86_64-linux.docs}";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue