docker-nexus/default

36 lines
849 B
Plaintext
Raw Normal View History

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