frontend working

This commit is contained in:
ray 2019-02-25 23:05:03 +02:00
parent 2438f61feb
commit 10ea018e68
7 changed files with 27 additions and 24 deletions

View File

@ -1,4 +1,4 @@
URL_INTERNAL=0.0.0.0
URL_EXTERNAL=cms.marcleopold.inset.uk
URL_INTERNAL=127.0.0.1
URL_EXTERNAL=https://cms.marcleopold.isnet.uk
PORT_APP=3003
PORT_SERVER=3004

1
.gitignore vendored
View File

@ -80,3 +80,4 @@ dist
# IDE
.idea
Session.vim
*.un~

View File

@ -8,6 +8,6 @@ ADD . ${APP_ROOT}
RUN npm install
RUN npm rebuild node-sass
# RUN npm run build
RUN npm run build
ENV HOST 0.0.0.0

View File

@ -5,7 +5,7 @@ module.exports = {
server: {
port: process.env.PORT_APP,
host: process.env.URL_INTERNAL,
host: '0.0.0.0',
},
serverMiddleware: [

View File

@ -13,7 +13,7 @@ services:
- PORT_APP=${PORT_APP}
- PORT_SERVER=${PORT_SERVER}
command:
"npm run dev"
"npm run start"
octobercms:
image: aspendigital/octobercms:latest
@ -25,6 +25,8 @@ services:
- ENABLE_CRON=true
- APP_DEBUG=false
- INIT_PLUGINS=true
- APP_URL=${URL_EXTERNAL}
- CMS_LINK_POLICY=force
volumes:
- ./server/plugins:/var/www/html/plugins
- ./server/storage/app:/var/www/html/storage/app

View File

@ -1,3 +1,22 @@
server {
listen 80;
listen [::]80;
server_name marcleopold.isnet.uk;
location / {
proxy_buffering off;
proxy_redirect http:://127.0.0.1:3003/ /;
proxy_pass http://127.0.0.1:3003/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
server_name cms.marcleopold.isnet.uk;
@ -33,22 +52,3 @@ server {
server_name cms.marcleopold.isnet.uk;
return 404; # managed by Certbot
}
server {
listen 80;
listen [::]80;
server_name marcleopold.isnet.uk;
location / {
proxy_buffering off;
proxy_redirect http:://127.0.0.1:3003/ /;
proxy_pass http://127.0.0.1:3003/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

Binary file not shown.