update
This commit is contained in:
parent
b14a43dd4f
commit
b241978b12
5 changed files with 1877 additions and 2 deletions
|
@ -5,4 +5,4 @@ RUN apk update
|
||||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||||
install-php-extensions gd xdebug mysqli imagick gmp
|
install-php-extensions openssl exif gd xdebug mysqli imagick gmp zip
|
||||||
|
|
1820
access.log
Normal file
1820
access.log
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,6 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
php:
|
php:
|
||||||
build:
|
build:
|
||||||
|
@ -14,7 +15,8 @@ services:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
volumes:
|
volumes:
|
||||||
- /home/debian/docker/xenforo/_data:/var/www/html/
|
- /home/debian/docker/xenforo/_data:/var/www/html/
|
||||||
- ./stp.conf:/etc/nginx/conf.d/stp.conf
|
- /home/debian/docker/nginx:/etc/nginx/conf.d/
|
||||||
|
- /home/debian/docker/access.log:/var/log/nginx/access.log
|
||||||
links:
|
links:
|
||||||
- php
|
- php
|
||||||
|
|
||||||
|
|
49
nginx/stp.conf
Normal file
49
nginx/stp.conf
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name squattheplanet.com www.squattheplanet.com;
|
||||||
|
|
||||||
|
client_max_body_size 512M;
|
||||||
|
|
||||||
|
add_header X-Xss-Protection "1; mode=block" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
try_files $uri $uri/ /index.php?$uri&$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /install/data/ {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /install/templates/ {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /internal_data/ {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /library/ {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /src/ {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite ^/chat(.*)$ https://discordapp.com/invite/R6Hwjmh permanent;
|
||||||
|
rewrite ^/shop(.*)$ https://www.etsy.com/shop/SquatThePlanet permanent;
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass php:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
}
|
||||||
|
}
|
4
stp.conf
4
stp.conf
|
@ -1,4 +1,7 @@
|
||||||
server {
|
server {
|
||||||
|
real_ip_header proxy_protocol;
|
||||||
|
set_real_ip_from 100.82.192.249;
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name squattheplanet.com www.squattheplanet.com;
|
server_name squattheplanet.com www.squattheplanet.com;
|
||||||
|
|
||||||
|
@ -45,5 +48,6 @@ server {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
fastcgi_param HTTP_PROXY_PROTOCOL $http_proxy_protocol; # Add this line
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue