1
0
Fork 0

Allow unconventional base URL
the build was successful Details

pull/2/head
Ambrose Chua 2018-09-26 23:55:04 +08:00
parent 4ec1aac7e7
commit e74d2d841a
5 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# [dri](https://hub.docker.com/r/productionwentdown/dri/) [![](https://images.microbadger.com/badges/version/productionwentdown/dri.svg)](https://microbadger.com/images/productionwentdown/dri "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/productionwentdown/dri.svg)](https://microbadger.com/images/productionwentdown/dri "Get your own image badge on microbadger.com") [![Build Status](https://ci.makerforce.io/api/badges/pwd/dri/status.svg)](https://ci.makerforce.io/pwd/dri)
A static Docker Distribution Registry viewer.
Docker Registry Interface (dri) is a static-site Docker Distribution Registry viewer.
## Features

View File

@ -10,7 +10,7 @@ TAGS_PER_PAGE=${TAGS_PER_PAGE:=30}
[[ "$USE_PORTUS_EXPLORE" != "true" ]] && [[ "$USE_PORTUS_EXPLORE" != "false" ]] && USE_PORTUS_EXPLORE=false
sed -i "s~<base href=/>~<base href=\"$BASE_URL\">~" /srv/index.html
sed -i "s~<base href=/ >~<base href=\"$BASE_URL\">~" /srv/index.html
cat > /etc/Caddyfile << EOF
:80$BASE_URL {

View File

@ -19,7 +19,7 @@ async function config() {
}
try {
const response = await fetch('/config.json');
const response = await fetch('config.json');
const jsonConfig = await response.json();
defaultConfig.merged = true;
return Object.assign(defaultConfig, jsonConfig);

View File

@ -9,7 +9,7 @@ import Blob from '@/views/Blob.vue';
Vue.use(Router);
export default new Router({
mode: 'history',
//mode: 'history',
routes: [
{
path: '/',

View File

@ -1,3 +1,4 @@
module.exports = {
lintOnSave: false,
baseUrl: '',
};