forked from Public/DockerWordpress
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ddb249cf9e | |||
| 5090f636db | |||
| c07f4a2abd | |||
| f3bbf8f8f9 |
@ -22,7 +22,7 @@ The subdirectories represent different wordpress deployments:
|
|||||||
|
|
||||||
added redis container to myadmin
|
added redis container to myadmin
|
||||||
|
|
||||||
**COMMON .env VARIABLES for all the deploymenst**
|
**COMMON .env VARIABLES for all the deployments**
|
||||||
|
|
||||||
.env VARIABLES
|
.env VARIABLES
|
||||||
|
|
||||||
@ -39,3 +39,6 @@ MYSQL_PASSWORD: the password for the MYSQL_USER
|
|||||||
MYSQL_WP_DATABASE: the wordpress database name
|
MYSQL_WP_DATABASE: the wordpress database name
|
||||||
|
|
||||||
EX_PORT: the port to access the wordpress
|
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
|
||||||
24
myadmin/nginx_site_config.conf
Normal file
24
myadmin/nginx_site_config.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user