Commit 18f1689f authored by Git Repository's avatar Git Repository Committed by Joshua Tauberer

changed the location we store the web-assets for the admin pages to /usr/local/mailinabox (#1179)

parent 8234a5a9
# 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/ {
......
......@@ -9,7 +9,7 @@
<meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="/assets/bootstrap.min.css">
<link rel="stylesheet" href="/admin/assets/bootstrap.min.css">
<style>
body {
overflow-y: scroll;
......@@ -63,7 +63,7 @@
margin-bottom: 1em;
}
</style>
<link rel="stylesheet" href="/assets/bootstrap-theme.min.css">
<link rel="stylesheet" href="/admin/assets/bootstrap-theme.min.css">
</head>
<body>
......@@ -191,8 +191,8 @@
</div>
</div>
<script src="/assets/jquery.min.js"></script>
<script src="/assets/bootstrap.min.js"></script>
<script src="/admin/assets/jquery.min.js"></script>
<script src="/admin/assets/bootstrap.min.js"></script>
<script>
var global_modal_state = null;
......
......@@ -65,7 +65,7 @@ fi
# Download jQuery and Bootstrap local files
# Make sure we have the directory to save to.
assets_dir=$STORAGE_ROOT/www/default/assets
assets_dir=/usr/local/lib/mailinabox/vendor/assets
mkdir -p $assets_dir
# jQuery CDN URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment