Special headers for workadventure map
This commit is contained in:
22
hosts/web-2/public.nix
Normal file
22
hosts/web-2/public.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.nginx = {
|
||||
virtualHosts."web-2.net.clerie.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
return = "404";
|
||||
};
|
||||
locations."/public/" = {
|
||||
alias = "/var/www/public/";
|
||||
};
|
||||
locations."/public/centopia/" = {
|
||||
alias = "/var/www/public/centopia/";
|
||||
extraConfig = ''
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user