parent
2790427083
commit
71dfb19647
@ -1,3 +1,3 @@
|
|||||||
FROM nginx
|
FROM nginx
|
||||||
COPY html/ /usr/share/nginx/html
|
COPY html/ /usr/share/nginx/html
|
||||||
COPY d3vyce.conf /etc/nginx/conf.d/d3vyce.conf
|
COPY default.conf.template /etc/nginx/templates
|
||||||
|
@ -8,6 +8,9 @@ server {
|
|||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
ssl_certificate /config/keys/cert.crt;
|
||||||
|
ssl_certificate_key /config/keys/cert.key;
|
||||||
|
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@ -17,5 +20,12 @@ server {
|
|||||||
try_files $uri $uri.html $uri/ =404;
|
try_files $uri $uri.html $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^(.+\.php)(.*)$ {
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include /etc/nginx/fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
error_page 404 /404-error.html;
|
error_page 404 /404-error.html;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user