Current Mac Files

This commit is contained in:
2024-11-26 14:37:36 -03:00
parent 6df5ccdf73
commit cfbca92b59
31 changed files with 1023 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
FROM nginx
RUN apt update
RUN apt install -y vim
COPY conf/default.conf /etc/nginx/conf.d

View File

@@ -0,0 +1,31 @@
server {
listen 80 default_server;
server_name localhost;
root /var/www/html/public;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
index index.html index.php;
client_max_body_size 5M;
location / {
try_files $uri $uri /index.php$is_args$args;
}
location ~ ^/.+\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
include fastcgi_params;
fastcgi_pass php-blog:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param REALPATHTEST $realpath_root;
internal;
}
}