Skip to content

Commit 0057ff5

Browse files
authored
feat: disable the setup route by default for nginx
1 parent 1819fe7 commit 0057ff5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx.conf.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ location /.user.ini {
4747
location ~* ^/setup($|/) {
4848
root $MAGE_ROOT;
4949
location ~ ^/setup/index.php {
50+
deny all;
51+
# If you want to enable the web based setup functionality, add your
52+
# ip address to the allow list below or comment out the deny all above.
53+
# allow 127.0.0.1;
54+
5055
fastcgi_pass fastcgi_backend;
5156

5257
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";

0 commit comments

Comments
 (0)