From 45f89cb5316ea15ac88e463d50a6d6ebabe04801 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 10 Mar 2020 01:12:44 +0300 Subject: [PATCH] Update modules/nginx.nix --- modules/nginx.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/nginx.nix b/modules/nginx.nix index 8ec79ea..c9b441e 100644 --- a/modules/nginx.nix +++ b/modules/nginx.nix @@ -9,12 +9,19 @@ }; in { "balsoft.ru" = { - locations."/" = { root = "/var/lib/balsoft.ru"; index = "index.txt"; }; + locations."/" = { + root = "/var/lib/balsoft.ru"; + index = "index.txt"; + }; enableACME = true; addSSL = true; }; "corona.balsoft.ru" = { - locations."/" = { root = "/var/lib/corona"; index = "index.html"; }; + locations."/" = { + root = "/var/lib/corona"; + index = "index.html"; + extraConfig = "add_header 'Access-Control-Allow-Origin' '*'"; + }; } // default; "cache.balsoft.ru" = { locations."/" = { proxyPass = "http://localhost:5000"; };