Change Mailinabox admin page - saudiqbal/Notes GitHub Wiki

Changing Mailinzbox admin login page

Update Nginx local.conf file and replace admin with desired name

_ # Control Panel_ # Proxy /admin to our Python based control panel daemon. It is # listening on IPv4 only so use an IP address and not 'localhost'. location /admin/assets { alias /usr/local/lib/mailinabox/vendor/assets; } rewrite ^/admin$ /admin/; rewrite ^/admin/munin$ /admin/munin/ redirect; location /admin/ { proxy_pass http://127.0.0.1:10222/; proxy_set_header X-Forwarded-For $remote_addr; add_header X-Frame-Options "DENY"; add_header X-Content-Type-Options nosniff; add_header Content-Security-Policy "frame-ancestors 'none';"; }

Edit HTML files in folder /root/mailinabox/management/templates and update refrences to new folder