use data volume for nginx temp space
This commit is contained in:
parent
1e8644e4a8
commit
abc41d227e
|
@ -1,5 +1,6 @@
|
||||||
FROM apps2reg:5000/dpedu/nexus
|
FROM dockermirror:5000/dpedu/nexus
|
||||||
|
|
||||||
ADD makedirs /start.d/
|
ADD makedirs /start.d/
|
||||||
ADD scripts/ /data/scripts/
|
ADD scripts/ /usr/share/backupdb/
|
||||||
ADD crontab /etc/cron.d/backupdb
|
ADD crontab /etc/cron.d/backupdb
|
||||||
|
ADD default /etc/nginx/sites-available/default
|
||||||
|
|
17
default
17
default
|
@ -1,17 +1,24 @@
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
#listen [::]:80 default_server ipv6only=on;
|
listen [::]:80 default_server ipv6only=on;
|
||||||
|
|
||||||
root /nexus/;
|
root /data/data/;
|
||||||
|
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
client_body_temp_path /nexus/datadb/tmp/;
|
|
||||||
|
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;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
autoindex on;
|
autoindex on;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /cgi-bin/ {
|
location /cgi-bin/ {
|
||||||
alias /usr/share/backupdb/;
|
alias /usr/share/backupdb/;
|
||||||
gzip off;
|
gzip off;
|
||||||
|
@ -22,4 +29,8 @@ server {
|
||||||
fastcgi_send_timeout 600s;
|
fastcgi_send_timeout 600s;
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /api/ {
|
||||||
|
rewrite ^/api/(.*) /cgi-bin/$1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue