-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inicializa repositorio do site g2bc com containerização da aplicação …
…wordpress
- Loading branch information
0 parents
commit 8ec0a73
Showing
7,148 changed files
with
2,508,532 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
WORDPRESS_DB_HOST= | ||
WORDPRESS_DB_USER= | ||
WORDPRESS_DB_PASSWORD= | ||
WORDPRESS_DB_NAME= | ||
|
||
MYSQL_DATABASE= | ||
MYSQL_USER= | ||
MYSQL_PASSWORD= | ||
MYSQL_ROOT_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM wordpress:latest | ||
COPY public_html/ /var/www/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: '3.1' | ||
|
||
services: | ||
|
||
wordpress: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
restart: always | ||
ports: | ||
- 8080:80 | ||
environment: | ||
WORDPRESS_DB_HOST: '${WORDPRESS_DB_HOST}' | ||
WORDPRESS_DB_USER: '${WORDPRESS_DB_USER}' | ||
WORDPRESS_DB_PASSWORD: '${WORDPRESS_DB_PASSWORD}' | ||
WORDPRESS_DB_NAME: '${WORDPRESS_DB_NAME}' | ||
volumes: | ||
- ./public_html:/var/www/html | ||
|
||
db: | ||
container_name: '${WORDPRESS_DB_HOST}' | ||
image: mysql:8.0 | ||
restart: always | ||
environment: | ||
MYSQL_DATABASE: '${MYSQL_DATABASE}' | ||
MYSQL_USER: '${MYSQL_USER}' | ||
MYSQL_PASSWORD: '${MYSQL_PASSWORD}' | ||
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}' | ||
command: '--default-authentication-plugin=mysql_native_password' | ||
volumes: | ||
- ./db:/var/lib/mysql | ||
- ./g2bcun_geral:/docker-entrypoint-initdb.d | ||
|
||
volumes: | ||
wordpress: | ||
db: |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
# BEGIN LSCACHE | ||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## | ||
<IfModule LiteSpeed> | ||
RewriteEngine on | ||
CacheLookup on | ||
RewriteRule .* - [E=Cache-Control:no-autoflush] | ||
RewriteRule \.litespeed_conf\.dat - [F,L] | ||
|
||
### marker ASYNC start ### | ||
RewriteCond %{REQUEST_URI} /wp-admin/admin-ajax\.php | ||
RewriteCond %{QUERY_STRING} action=async_litespeed | ||
RewriteRule .* - [E=noabort:1] | ||
### marker ASYNC end ### | ||
|
||
### marker MOBILE start ### | ||
RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] | ||
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+ismobile] | ||
### marker MOBILE end ### | ||
|
||
### marker CACHE RESOURCE start ### | ||
RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600] | ||
### marker CACHE RESOURCE end ### | ||
|
||
### marker WEBP start ### | ||
RewriteCond %{HTTP_ACCEPT} "image/webp" | ||
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] | ||
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari | ||
RewriteCond %1 >13 | ||
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] | ||
### marker WEBP end ### | ||
|
||
### marker DROPQS start ### | ||
CacheKeyModify -qs:fbclid | ||
CacheKeyModify -qs:gclid | ||
CacheKeyModify -qs:utm* | ||
CacheKeyModify -qs:_ga | ||
### marker DROPQS end ### | ||
|
||
</IfModule> | ||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## | ||
# END LSCACHE | ||
# BEGIN NON_LSCACHE | ||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## | ||
### marker BROWSER CACHE start ### | ||
<IfModule mod_expires.c> | ||
ExpiresActive on | ||
ExpiresByType application/pdf A31557600 | ||
ExpiresByType image/x-icon A31557600 | ||
ExpiresByType image/vnd.microsoft.icon A31557600 | ||
ExpiresByType image/svg+xml A31557600 | ||
|
||
ExpiresByType image/jpg A31557600 | ||
ExpiresByType image/jpeg A31557600 | ||
ExpiresByType image/png A31557600 | ||
ExpiresByType image/gif A31557600 | ||
ExpiresByType image/webp A31557600 | ||
|
||
ExpiresByType video/ogg A31557600 | ||
ExpiresByType audio/ogg A31557600 | ||
ExpiresByType video/mp4 A31557600 | ||
ExpiresByType video/webm A31557600 | ||
|
||
ExpiresByType text/css A31557600 | ||
ExpiresByType text/javascript A31557600 | ||
ExpiresByType application/javascript A31557600 | ||
ExpiresByType application/x-javascript A31557600 | ||
|
||
ExpiresByType application/x-font-ttf A31557600 | ||
ExpiresByType application/x-font-woff A31557600 | ||
ExpiresByType application/font-woff A31557600 | ||
ExpiresByType application/font-woff2 A31557600 | ||
ExpiresByType application/vnd.ms-fontobject A31557600 | ||
ExpiresByType font/ttf A31557600 | ||
ExpiresByType font/otf A31557600 | ||
ExpiresByType font/woff A31557600 | ||
ExpiresByType font/woff2 A31557600 | ||
|
||
</IfModule> | ||
### marker BROWSER CACHE end ### | ||
|
||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## | ||
# END NON_LSCACHE | ||
# BEGIN Configs UNEB | ||
|
||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteCond %{SERVER_PORT} 80 | ||
RewriteRule ^(.*)$ https://www.g2bc.uneb.br/$1 [R,L] | ||
</IfModule> | ||
|
||
<Files wp-login.php> | ||
order deny,allow | ||
Deny from all | ||
Allow from 10.129.0.0/16 | ||
Allow from 192.168.5.15 | ||
Allow from 172.16.12.0/22 | ||
</Files> | ||
|
||
<Files xmlrpc.php> | ||
order deny,allow | ||
Deny from all | ||
Allow from 10.129.0.0/16 | ||
Allow from 192.168.5.15 | ||
</Files> | ||
|
||
|
||
#END Configs UNEB | ||
|
||
# BEGIN WordPress | ||
# As diretrizes (linhas) entre "BEGIN WordPress" e "END WordPress" são | ||
# geradas dinamicamente e só devem ser modificadas através de filtros do WordPress. | ||
# Quaisquer alterações nas diretivas entre esses marcadores serão sobrescritas. | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | ||
RewriteBase / | ||
RewriteRule ^index\.php$ - [L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule . /index.php [L] | ||
</IfModule> | ||
|
||
# END WordPress | ||
|
||
# Wordfence WAF | ||
<Files ".user.ini"> | ||
<IfModule mod_authz_core.c> | ||
Require all denied | ||
</IfModule> | ||
<IfModule !mod_authz_core.c> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> | ||
</Files> | ||
|
||
# END Wordfence WAF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# BEGIN Configs UNEB | ||
|
||
<Files wp-login.php> | ||
order deny,allow | ||
Deny from all | ||
Allow from 10.129.0.0/16 | ||
Allow from 192.168.5.15 | ||
Allow from 172.16.12.0/22 | ||
</Files> | ||
|
||
<Files xmlrpc.php> | ||
order deny,allow | ||
Deny from all | ||
Allow from 10.129.0.0/16 | ||
Allow from 192.168.5.15 | ||
</Files> | ||
|
||
|
||
#END Configs UNEB | ||
|
||
# BEGIN WordPress | ||
# As diretrizes (linhas) entre "BEGIN WordPress" e "END WordPress" são | ||
# geradas dinamicamente e só devem ser modificadas através de filtros do WordPress. | ||
# Quaisquer alterações nas diretivas entre esses marcadores serão sobrescritas. | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | ||
RewriteBase / | ||
RewriteRule ^index\.php$ - [L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule . /index.php [L] | ||
</IfModule> | ||
|
||
# END WordPress | ||
|
||
# Wordfence WAF | ||
<Files ".user.ini"> | ||
<IfModule mod_authz_core.c> | ||
Require all denied | ||
</IfModule> | ||
<IfModule !mod_authz_core.c> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> | ||
</Files> | ||
|
||
# END Wordfence WAF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
; Wordfence WAF | ||
auto_prepend_file = '/home/g2bcun/public_html/wordfence-waf.php' | ||
; END Wordfence WAF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* Front to the WordPress application. This file doesn't do anything, but loads | ||
* wp-blog-header.php which does and tells WordPress to load the theme. | ||
* | ||
* @package WordPress | ||
*/ | ||
|
||
/** | ||
* Tells WordPress to load the WordPress theme and output it. | ||
* | ||
* @var bool | ||
*/ | ||
define( 'WP_USE_THEMES', true ); | ||
|
||
/** Loads the WordPress Environment and Template */ | ||
require __DIR__ . '/wp-blog-header.php'; |
Oops, something went wrong.