Skip to content

Instantly share code, notes, and snippets.

@renepardon
Last active October 25, 2018 09:35
Show Gist options
  • Save renepardon/23799adea4828bfecc0b5114b82798e6 to your computer and use it in GitHub Desktop.
Save renepardon/23799adea4828bfecc0b5114b82798e6 to your computer and use it in GitHub Desktop.
404 of /js/app.js when running behind traefik proxy within docker-compose
auth:
build:
context: ./docker/auth
dockerfile: Dockerfile${DOCKERFILE_POSTFIX}
expose:
- 9000
environment:
- SERVICE_NAME=auth
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:localhost"
- "traefik.frontend.rule=PathPrefixStrip:/auth"
- "traefik.port=9000"
volumes:
- ./docker/auth/src:/src
links:
- auth_db
restart: always
networks:
- proxy
// ...
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
__webpack_require__(16);
window.Vue = __webpack_require__(39);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component('example-component', __webpack_require__(42));
Vue.component('passport-clients', __webpack_require__(45));
Vue.component('passport-authorized-clients', __webpack_require__(51));
Vue.component('passport-personal-access-tokens', __webpack_require__(56));
var app = new Vue({
el: '#app'
});
/***/ }),
// ...
{
"/js/app.js": "js/app.js",
"/css/app.css": "css/app.css"
}
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap')
window.Vue = require('vue')
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component(
'example-component',
require('./components/ExampleComponent.vue')
)
Vue.component(
'passport-clients',
require('./components/passport/Clients.vue')
)
Vue.component(
'passport-authorized-clients',
require('./components/passport/AuthorizedClients.vue')
)
Vue.component(
'passport-personal-access-tokens',
require('./components/passport/PersonalAccessTokens.vue')
)
const app = new Vue({
el: '#app',
})
<body>
<div>
<div id="app">
<passport-personal-access-tokens></passport-personal-access-tokens>
</div>
</div>
<script type="text/javascript" src="{{ mix('/js/app.js') }}"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment