docker-backupdb/default

37 lines
895 B
Plaintext
Raw Permalink Normal View History

2017-04-22 15:37:39 -07:00
server {
listen 80 default_server;
2021-03-10 21:37:53 -08:00
listen [::]:80 default_server ipv6only=on;
2017-04-22 15:37:39 -07:00
2021-03-10 21:37:53 -08:00
root /data/data/;
2017-04-22 15:37:39 -07:00
index index.html index.htm;
server_name localhost;
2021-03-10 21:37:53 -08:00
client_body_temp_path /data/data/datadb/tmp/;
fastcgi_temp_path /data/data/datadb/tmp/;
proxy_temp_path /data/data/datadb/tmp/;
#auth_basic "Restricted";
#auth_basic_user_file /data/htpasswd;
2017-04-22 15:37:39 -07:00
location / {
autoindex on;
try_files $uri $uri/ =404;
}
2021-03-10 21:37:53 -08:00
2017-04-22 15:37:39 -07:00
location /cgi-bin/ {
alias /usr/share/backupdb/;
gzip off;
fastcgi_pass unix:/tmp/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/backupdb$fastcgi_script_name;
fastcgi_read_timeout 600s;
fastcgi_send_timeout 600s;
2017-04-23 18:02:33 -07:00
client_max_body_size 0;
2017-04-22 15:37:39 -07:00
}
2021-03-10 21:37:53 -08:00
location /api/ {
rewrite ^/api/(.*) /cgi-bin/$1;
}
2017-04-22 15:37:39 -07:00
}