mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02: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,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…
Add table
Add a link
Reference in a new issue