Compare commits

..

4 Commits

Author SHA1 Message Date
ddb249cf9e Typo corrected 2021-05-12 11:41:59 +00:00
5090f636db Updated README 2021-05-12 11:41:36 +00:00
c07f4a2abd nginx site config file
The site config file added must go to the nginx configuration directory in the gateway server
2021-05-12 11:39:27 +00:00
f3bbf8f8f9 Merge pull request 'master' (#1) from chemi/DockerWordpress_improvements:master into master
Reviewed-on: https://gitea.cect.org/Public/DockerWordpress/pulls/1
2021-05-12 10:25:30 +00:00
2 changed files with 28 additions and 1 deletions

View File

@ -22,7 +22,7 @@ The subdirectories represent different wordpress deployments:
added redis container to myadmin
**COMMON .env VARIABLES for all the deploymenst**
**COMMON .env VARIABLES for all the deployments**
.env VARIABLES
@ -39,3 +39,6 @@ MYSQL_PASSWORD: the password for the MYSQL_USER
MYSQL_WP_DATABASE: the wordpress database name
EX_PORT: the port to access the wordpress
## nginx configuration file
The nginx configuration file must be placed in the nginx configuration directory of the host that will make reverse proxy to our site

View File

@ -0,0 +1,24 @@
server
{
server_name nombre.servidor.com;
location /phpmyadmin/
{
proxy_pass http://192.168.1.91:8008/; # phpmyadmin container exposed port. Trailing / is very important
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
}
location /
{
proxy_pass http://192.168.1.91:8009; # WP container exposed port
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
}
}