Update nginx conf
This commit is contained in:
parent
e76456050f
commit
c4ac778a24
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue