diff --git a/compose.yml b/compose.yml index 552d633..985c898 100644 --- a/compose.yml +++ b/compose.yml @@ -6,7 +6,7 @@ services: image: "nginx:stable" configs: - source: abra_conf - target: /etc/nginx/conf.d/abra.conf + target: /etc/nginx/conf.d/default.conf - source: abra_apps_json target: /var/www/abra-apps/apps.json volumes: diff --git a/nginx.conf b/nginx.conf index ec54077..4990377 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,10 +3,6 @@ server { server_name apps.coopcloud.tech; location / { - root /var/www/abra-apps; - add_header Content-Type application/json; - index apps.json; - if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; @@ -34,5 +30,10 @@ server { add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; } + + add_header Content-Type application/json; + + root /var/www/abra-apps; + index apps.json; } }