diff --git a/site-cookbooks/kosmos_assets/templates/nginx_conf_assets.erb b/site-cookbooks/kosmos_assets/templates/nginx_conf_assets.erb index 14b6235..84562b2 100644 --- a/site-cookbooks/kosmos_assets/templates/nginx_conf_assets.erb +++ b/site-cookbooks/kosmos_assets/templates/nginx_conf_assets.erb @@ -3,6 +3,7 @@ server { listen 443 ssl http2; + listen [::]:443 ssl http2; server_name <%= @domain %>; root /var/www/<%= @domain %>/site; @@ -11,6 +12,8 @@ server { gzip_static on; gzip_comp_level 5; + add_header 'Access-Control-Allow-Origin' '*'; + location ~* .(css)$ { expires 1d; } diff --git a/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl b/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl index 61f1c59..10fad3b 100644 --- a/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl +++ b/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl @@ -1,3 +1,4 @@