mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Fix vue config when using docker
This commit is contained in:
@@ -29,5 +29,7 @@ services:
|
||||
volumes:
|
||||
- ./frontend/:/home/node/
|
||||
command: "yarn serve"
|
||||
environment:
|
||||
DOCKER: "yes"
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
@@ -2,7 +2,10 @@ module.exports = {
|
||||
devServer: {
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:8000/",
|
||||
target:
|
||||
process.env.DOCKER == "yes"
|
||||
? "http://api:8000/"
|
||||
: "http://localhost:8000",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -28,6 +28,7 @@ SECRET_KEY = '!8o(-dbbl3e+*bh7nx-^xysdt)1gso*%@4ze4-9_9o+i&t--u_'
|
||||
DEBUG = 'DEBUG' in os.environ
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'api',
|
||||
'127.0.0.1',
|
||||
'localhost',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user