2021-04-15 22:16:54 +00:00
|
|
|
listen 8080;
|
2019-03-08 16:03:35 +00:00
|
|
|
access_log /srv/apps/drop/logs/access.log;
|
|
|
|
error_log /srv/apps/drop/logs/error.log;
|
|
|
|
|
2019-03-08 15:44:50 +00:00
|
|
|
location @drop_app {
|
2019-03-08 15:46:14 +00:00
|
|
|
proxy_pass http://unix:/tmp/drop.sock;
|
2019-03-08 15:44:50 +00:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /~static/ {
|
2019-03-08 16:06:42 +00:00
|
|
|
alias /srv/apps/drop/~static/;
|
2019-03-08 15:44:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri @drop_app;
|
2021-06-16 20:29:20 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
return 204;
|
|
|
|
}
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
add_header Access-Control-Max-Age 3600;
|
|
|
|
add_header Access-Control-Expose-Headers Content-Length;
|
|
|
|
add_header Access-Control-Allow-Headers Range;
|
2019-03-08 15:44:50 +00:00
|
|
|
}
|