Fix nginx conf

This commit is contained in:
d3vyce 2023-04-02 11:56:32 -04:00
parent 2790427083
commit 71dfb19647
2 changed files with 11 additions and 1 deletions

@ -1,3 +1,3 @@
FROM nginx
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 _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
client_max_body_size 0;
location / {
@ -17,5 +20,12 @@ server {
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;
}