frontend working
This commit is contained in:
parent
2438f61feb
commit
10ea018e68
|
@ -1,4 +1,4 @@
|
||||||
URL_INTERNAL=0.0.0.0
|
URL_INTERNAL=127.0.0.1
|
||||||
URL_EXTERNAL=cms.marcleopold.inset.uk
|
URL_EXTERNAL=https://cms.marcleopold.isnet.uk
|
||||||
PORT_APP=3003
|
PORT_APP=3003
|
||||||
PORT_SERVER=3004
|
PORT_SERVER=3004
|
||||||
|
|
|
@ -80,3 +80,4 @@ dist
|
||||||
# IDE
|
# IDE
|
||||||
.idea
|
.idea
|
||||||
Session.vim
|
Session.vim
|
||||||
|
*.un~
|
||||||
|
|
|
@ -8,6 +8,6 @@ ADD . ${APP_ROOT}
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm rebuild node-sass
|
RUN npm rebuild node-sass
|
||||||
# RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
ENV HOST 0.0.0.0
|
ENV HOST 0.0.0.0
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
|
|
||||||
server: {
|
server: {
|
||||||
port: process.env.PORT_APP,
|
port: process.env.PORT_APP,
|
||||||
host: process.env.URL_INTERNAL,
|
host: '0.0.0.0',
|
||||||
},
|
},
|
||||||
|
|
||||||
serverMiddleware: [
|
serverMiddleware: [
|
||||||
|
|
|
@ -13,7 +13,7 @@ services:
|
||||||
- PORT_APP=${PORT_APP}
|
- PORT_APP=${PORT_APP}
|
||||||
- PORT_SERVER=${PORT_SERVER}
|
- PORT_SERVER=${PORT_SERVER}
|
||||||
command:
|
command:
|
||||||
"npm run dev"
|
"npm run start"
|
||||||
|
|
||||||
octobercms:
|
octobercms:
|
||||||
image: aspendigital/octobercms:latest
|
image: aspendigital/octobercms:latest
|
||||||
|
@ -25,6 +25,8 @@ services:
|
||||||
- ENABLE_CRON=true
|
- ENABLE_CRON=true
|
||||||
- APP_DEBUG=false
|
- APP_DEBUG=false
|
||||||
- INIT_PLUGINS=true
|
- INIT_PLUGINS=true
|
||||||
|
- APP_URL=${URL_EXTERNAL}
|
||||||
|
- CMS_LINK_POLICY=force
|
||||||
volumes:
|
volumes:
|
||||||
- ./server/plugins:/var/www/html/plugins
|
- ./server/plugins:/var/www/html/plugins
|
||||||
- ./server/storage/app:/var/www/html/storage/app
|
- ./server/storage/app:/var/www/html/storage/app
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
||||||
server_name cms.marcleopold.isnet.uk;
|
server_name cms.marcleopold.isnet.uk;
|
||||||
|
@ -33,22 +52,3 @@ server {
|
||||||
server_name cms.marcleopold.isnet.uk;
|
server_name cms.marcleopold.isnet.uk;
|
||||||
return 404; # managed by Certbot
|
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.
Loading…
Reference in New Issue