5 error_log /dev/stderr warn;
7 client_max_body_size 4G;
10 proxy_buffer_size 32k;
14 location /.well-known/ {}
23 location ~ ^/media/.*\.(mp3|ogg|daisy\.zip)$ {
24 add_header Content-Disposition "attachment";
26 location ~ ^/media/.*\.txt$ {
29 location ~ ^/media/book/(pdf|epub|mobi|fb2|cover|xml)/ {
31 add_header Last-Modified $date_gmt;
32 add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
33 if_modified_since off;
39 add_header 'Access-Control-Allow-Origin' '*' always;
40 add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE' always;
41 add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type' always;
42 add_header 'Access-Control-Expose-Headers' 'Link' always;
44 if ($request_method = OPTIONS) {
48 proxy_set_header Accept-Language "";
49 proxy_set_header Host $host;
50 proxy_pass http://web:8000;
53 root /app/var/static/root;
54 try_files $uri @backend;
58 proxy_set_header Accept-Language "";
59 proxy_set_header Host $host;
60 proxy_pass http://web:8000;