demyxsh / demyx

Demyx is a Docker image that automates and manages WordPress installations. Traefik for reverse proxy with Lets Encrypt SSL/TLS. WordPress sites are powered by OpenLiteSpeed/NGINX-PHP and MariaDB.
https://demyx.sh
MIT License
144 stars 23 forks source link

Debug mode #1

Closed JamesonBR closed 4 years ago

JamesonBR commented 4 years ago

It would be interesting to have the command to enable debug mode by command line in the development state.

Updating the configuration in wp-config, enabling xdebug in php and restarting to enable it.

demyxco commented 4 years ago

Hi thanks for using Demyx, I will add an update after some testing.

demyxco commented 4 years ago

Hi @JamesonBR, I've released an update. Try it out now.

JamesonBR commented 4 years ago

Great job @demyxco, works like a breeze.

I will analyze and test the code more, so I can contribute as well.

So far, I'm enjoying it.

Thankful!

JamesonBR commented 4 years ago

I just felt the need to limit debug only to one instance, could be just for www.domain.xyz/demyx/bs/.

To be more secure, it would be interesting to create a UFW or nginx rule to allow access to the development environment for local IP only, not from the server but from the client network.

demyxco commented 4 years ago

Great job @demyxco, works like a breeze.

Glad to know!

To be more secure, it would be interesting to create a UFW or nginx rule to allow access to the development environment for local IP only, not from the server but from the client network.

I've briefly messed with Traefik's allowed IP label but this only works for your actual IP address and not local IP, I'll see what I can do.

demyxco commented 4 years ago

Since the first issue/request has been solved, I will be closing this. Feel free to open a new one!