Disabling PHP

This commit is contained in:
Marwolf
2018-08-18 13:03:12 -04:00
parent 3e2046f50e
commit 200e2d82c7
3 changed files with 31 additions and 32 deletions

View File

@@ -9,14 +9,14 @@ services:
- "./Website:/opt/bitnami/nginx/html" - "./Website:/opt/bitnami/nginx/html"
- "./etc/logs/nginx:/opt/bitnami/nginx/logs" - "./etc/logs/nginx:/opt/bitnami/nginx/logs"
- "./etc/letsencrypt/certs:/opt/bitnami/nginx/conf/bitnami/certs" - "./etc/letsencrypt/certs:/opt/bitnami/nginx/conf/bitnami/certs"
- "./etc/nginx/fastcgi.conf:/bitnami/nginx/conf/fastcgi.conf" # - "./etc/nginx/fastcgi.conf:/bitnami/nginx/conf/fastcgi.conf"
ports: ports:
- "80:8080" - "80:8080"
- "443:443" - "443:443"
environment: environment:
- NGINX_HOST=${NGINX_HOST} - NGINX_HOST=${NGINX_HOST}
- LETSENCRYPT_HOST=localhost # - LETSENCRYPT_HOST=localhost
- LETSENCRYPT_EMAIL=your.email@here.com # - LETSENCRYPT_EMAIL=root@root.com
restart: always restart: always
myadmin: myadmin:
@@ -106,18 +106,18 @@ services:
depends_on: depends_on:
- fix-ghost-permissions - fix-ghost-permissions
php: # php:
image: bitnami/php-fpm:latest # image: bitnami/php-fpm:latest
container_name: php # container_name: php
restart: always # restart: always
ports: # ports:
- "9001:9000" # - "9001:9000"
volumes: # volumes:
- "./etc/php/php.ini:/opt/bitnami/php/etc/conf.d/php.ini" # - "./etc/php/php.ini:/opt/bitnami/php/etc/conf.d/php.ini"
- "./Website:/app" # - "./Website:/app"
- "./etc/logs/php:/opt/bitnami/php/log" # - "./etc/logs/php:/opt/bitnami/php/log"
depends_on: # depends_on:
- nginx # - nginx
volumes: volumes:
mariadb_data: mariadb_data:

View File

@@ -42,22 +42,22 @@ server {
ssl_trusted_certificate /etc/letsencrypt/live/${NGINX_HOST}/chain.pem; ssl_trusted_certificate /etc/letsencrypt/live/${NGINX_HOST}/chain.pem;
root /app; root /app;
index index.jsp index.html index.htm index.php; index index.jsp index.html index.htm;
client_max_body_size 100M; client_max_body_size 100M;
location / { location / {
try_files $uri $uri/index.php; try_files $uri $uri/ =404;
} }
####### Proxies ####### ####### Proxies #######
# PHP proxy # PHP proxy
location ~ \.php$ { # location /board {
fastcgi_pass php:9001; # fastcgi_pass php:9001;
fastcgi_index index.php; # fastcgi_index index.php;
include fastcgi.conf; # include fastcgi.conf;
root /app; # root /app;
} # }
location ~ \.htm$ { location ~ \.htm$ {
root /opt/bitnami/nginx/html; root /opt/bitnami/nginx/html;
@@ -81,7 +81,6 @@ server {
proxy_pass http://tomcat; proxy_pass http://tomcat;
} }
# Certbot for HTTPS cert renewal
location ~ /.well-known { location ~ /.well-known {
root /opt/bitnami/nginx/html; root /opt/bitnami/nginx/html;
allow all; allow all;

View File

@@ -16,22 +16,22 @@ server {
access_log /opt/bitnami/nginx/logs/access.log; access_log /opt/bitnami/nginx/logs/access.log;
root /app; root /app;
index index.jsp index.html index.htm index.php; index index.jsp index.html index.htm;
client_max_body_size 100M; client_max_body_size 100M;
location / { location / {
try_files $uri $uri/index.php; try_files $uri $uri/ =404;
} }
####### Proxies ####### ####### Proxies #######
# PHP proxy # PHP proxy
location ~ \.php$ { # location /board {
fastcgi_pass php:9001; # fastcgi_pass php:9001;
fastcgi_index index.php; # fastcgi_index index.php;
include fastcgi.conf; # include fastcgi.conf;
root /app; # root /app;
} # }
location ~ \.htm$ { location ~ \.htm$ {
root /opt/bitnami/nginx/html; root /opt/bitnami/nginx/html;