mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
Changed the alias to only serve on the admin dir
This commit is contained in:
parent
378ba271de
commit
0bbe7106bc
@ -18,9 +18,7 @@
|
|||||||
location = /.well-known/autoconfig/mail/config-v1.1.xml {
|
location = /.well-known/autoconfig/mail/config-v1.1.xml {
|
||||||
alias /var/lib/mailinabox/mozilla-autoconfig.xml;
|
alias /var/lib/mailinabox/mozilla-autoconfig.xml;
|
||||||
}
|
}
|
||||||
location /mailinabox {
|
|
||||||
alias /usr/local/mailinabox;
|
|
||||||
}
|
|
||||||
# Roundcube Webmail configuration.
|
# Roundcube Webmail configuration.
|
||||||
rewrite ^/mail$ /mail/ redirect;
|
rewrite ^/mail$ /mail/ redirect;
|
||||||
rewrite ^/mail/$ /mail/index.php;
|
rewrite ^/mail/$ /mail/index.php;
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
# Control Panel
|
# Control Panel
|
||||||
|
|
||||||
|
# Admin assets directory
|
||||||
|
location /admin/assets {
|
||||||
|
alias /usr/local/mailinabox/vendor/assets;
|
||||||
|
}
|
||||||
|
|
||||||
# Proxy /admin to our Python based control panel daemon. It is
|
# Proxy /admin to our Python based control panel daemon. It is
|
||||||
# listening on IPv4 only so use an IP address and not 'localhost'.
|
# listening on IPv4 only so use an IP address and not 'localhost'.
|
||||||
rewrite ^/admin$ /admin/;
|
rewrite ^/admin$ /admin/;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
|
||||||
<link rel="stylesheet" href="/mailinabox/vendor/assets/bootstrap.min.css">
|
<link rel="stylesheet" href="/admin/assets/bootstrap.min.css">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
@ -63,7 +63,7 @@
|
|||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/mailinabox/vendor/assets/bootstrap-theme.min.css">
|
<link rel="stylesheet" href="/admin/assets/bootstrap-theme.min.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@ -191,8 +191,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/mailinabox/vendor/assets/jquery.min.js"></script>
|
<script src="/admin/assets/jquery.min.js"></script>
|
||||||
<script src="/mailinabox/vendor/assets/bootstrap.min.js"></script>
|
<script src="/admin/assets/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var global_modal_state = null;
|
var global_modal_state = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user