Alpine-based images for size reduction
This commit is contained in:
@@ -16,7 +16,7 @@ server {
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
root /app;
|
||||
index index.jsp index.html index.htm;
|
||||
index index.php index.jsp index.html index.htm;
|
||||
|
||||
client_max_body_size 100M;
|
||||
|
||||
@@ -25,14 +25,24 @@ server {
|
||||
}
|
||||
|
||||
####### Proxies #######
|
||||
# # PHP proxy
|
||||
# location /board {
|
||||
# PHP proxy
|
||||
# location ~ \.php$ {
|
||||
# fastcgi_pass php:9001;
|
||||
# fastcgi_index index.php;
|
||||
# include fastcgi.conf;
|
||||
# include php/fastcgi.conf;
|
||||
# root /app;
|
||||
# }
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass php:9001;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
|
||||
# Ghost proxy
|
||||
location /blog {
|
||||
proxy_pass http://ghost;
|
||||
|
||||
Reference in New Issue
Block a user