Update nginx conf
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build was killed Details

This commit is contained in:
3wc 2021-08-19 01:54:08 +02:00
parent e76456050f
commit c4ac778a24
2 changed files with 6 additions and 5 deletions

View File

@ -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:

View File

@ -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;
}
}