updates
This commit is contained in:
parent
6d446c36ab
commit
c4e94de14f
|
@ -1,5 +1,5 @@
|
||||||
URL_INTERNAL=127.0.0.1
|
URL_INTERNAL=127.0.0.1
|
||||||
URL_CMS=https://cms.marcleopold.isnet.uk
|
URL_CMS=https://cms.leopold.rayelliott.dev
|
||||||
URL_APP=https://marcleopold.isnet.uk
|
URL_APP=https://leopold.rayelliott.dev
|
||||||
PORT_APP=3003
|
PORT_APP=3013
|
||||||
PORT_CMS=3004
|
PORT_CMS=3014
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
Rename either `.env-dev` or `.env-production` to `.env` before running for the first time.
|
Rename either `.env-dev` or `.env-production` to `.env` before running for the first time.
|
||||||
|
|
||||||
|
|
||||||
If need to (re)create a database see server/README.md
|
If need to (re)create a database see cms/README.md
|
||||||
|
|
|
@ -53,7 +53,7 @@ ${msg}`
|
||||||
const mailJson = {
|
const mailJson = {
|
||||||
from: 'server@gabbaell.co.uk',
|
from: 'server@gabbaell.co.uk',
|
||||||
replyTo: email,
|
replyTo: email,
|
||||||
to: 'marcleopold.isnet@gabbaell.co.uk',
|
to: 'leopold@rayelliott.dev',
|
||||||
subject: 'Contact form message concerning Marc Leopold',
|
subject: 'Contact form message concerning Marc Leopold',
|
||||||
text: text,
|
text: text,
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,12 +23,12 @@ module.exports = {
|
||||||
|
|
||||||
{ hid: 'description', name: 'description', content: 'Photographer, Marc Leopold has images in numerous collections and publications. Here is a glimpse of his work, an insight into his philosophy and motivations.' },
|
{ hid: 'description', name: 'description', content: 'Photographer, Marc Leopold has images in numerous collections and publications. Here is a glimpse of his work, an insight into his philosophy and motivations.' },
|
||||||
|
|
||||||
{ property: 'og:image', content: 'https://marcleopold.isnet.uk/img/open-graph/marc-leopold-ss.png'},
|
{ property: 'og:image', content: 'https://leopold.rayelliott.dev/img/open-graph/marc-leopold-ss.png'},
|
||||||
{ property: 'og:image:width', content: '1200'},
|
{ property: 'og:image:width', content: '1200'},
|
||||||
{ property: 'og:image:height', content: '600'},
|
{ property: 'og:image:height', content: '600'},
|
||||||
{ property: 'og:image:type', content: 'image/png' },
|
{ property: 'og:image:type', content: 'image/png' },
|
||||||
{ property: 'og:title', content: 'Marc Leopold Photography' },
|
{ property: 'og:title', content: 'Marc Leopold Photography' },
|
||||||
{ property: 'og:url', content: 'https://marcleopold.isnet.uk' },
|
{ property: 'og:url', content: 'https://leopold.rayelliott.dev' },
|
||||||
{ property: 'og:site_name', content: 'Marc Leopold Photography' },
|
{ property: 'og:site_name', content: 'Marc Leopold Photography' },
|
||||||
{ property: 'og:type', content: 'website'},
|
{ property: 'og:type', content: 'website'},
|
||||||
{ property: 'og:description', content: 'Marc Leopold is a Chicago born photographer whose images have appeared in many collections and publications. His website is a showcase of his outstanding work and an insight into his philosophy and motivations.' },
|
{ property: 'og:description', content: 'Marc Leopold is a Chicago born photographer whose images have appeared in many collections and publications. His website is a showcase of his outstanding work and an insight into his philosophy and motivations.' },
|
||||||
|
@ -108,7 +108,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/v1/': 'https://cms.marcleopold.isnet.uk',
|
'/api/v1/': 'https://cms.leopold.rayelliott.dev',
|
||||||
// FIXME: why this no work?
|
// FIXME: why this no work?
|
||||||
// '/api/v1/': process.env.URL_CMS,
|
// '/api/v1/': process.env.URL_CMS,
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,10 +3,10 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
nuxt:
|
nuxt:
|
||||||
build: ./app/
|
build: ./app/
|
||||||
container_name: marcleopold-website
|
container_name: marcleopold-rayelliott.dev
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- ${URL_INTERNAL}:3003:3003
|
- ${URL_INTERNAL}:3013:3013
|
||||||
environment:
|
environment:
|
||||||
- URL_INTERNAL=${URL_INTERNAL}
|
- URL_INTERNAL=${URL_INTERNAL}
|
||||||
- URL_CMS=${URL_CMS}
|
- URL_CMS=${URL_CMS}
|
||||||
|
@ -21,7 +21,7 @@ services:
|
||||||
build: ./cms/
|
build: ./cms/
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- ${URL_INTERNAL}:3004:80
|
- ${URL_INTERNAL}:3014:80
|
||||||
environment:
|
environment:
|
||||||
- ENABLE_CRON=true
|
- ENABLE_CRON=true
|
||||||
- APP_DEBUG=false
|
- APP_DEBUG=false
|
||||||
|
|
|
@ -1,11 +1,34 @@
|
||||||
server {
|
server {
|
||||||
|
|
||||||
server_name marcleopold.isnet.uk;
|
server_name leopold.rayelliott.dev;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_redirect http:://127.0.0.1:3003/ /;
|
proxy_redirect http:://127.0.0.1:3013/ /;
|
||||||
proxy_pass http://127.0.0.1:3003/;
|
proxy_pass http://127.0.0.1:3013/;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
listen 443 ssl; # managed by Certbot
|
||||||
|
ssl_certificate /etc/letsencrypt/live/leopold.rayelliott.dev/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/leopold.rayelliott.dev/privkey.pem; # managed by Certbot
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
server_name cms.leopold.rayelliott.dev;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_redirect http:://127.0.0.1:3014/ /;
|
||||||
|
proxy_pass http://127.0.0.1:3014/;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -14,60 +37,36 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
listen [::]:443 ssl; # managed by Certbot
|
|
||||||
listen 443 ssl; # managed by Certbot
|
listen 443 ssl; # managed by Certbot
|
||||||
ssl_certificate /etc/letsencrypt/live/marcleopold.isnet.uk/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/cms.leopold.rayelliott.dev/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/marcleopold.isnet.uk/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/cms.leopold.rayelliott.dev/privkey.pem; # managed by Certbot
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
|
|
||||||
server_name cms.marcleopold.isnet.uk;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_redirect http:://127.0.0.1:3004/ /;
|
|
||||||
proxy_pass http://127.0.0.1:3004/;
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
|
||||||
listen 443 ssl; # managed by Certbot
|
|
||||||
ssl_certificate /etc/letsencrypt/live/cms.marcleopold.isnet.uk/fullchain.pem; # managed by Certbot
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/cms.marcleopold.isnet.uk/privkey.pem; # managed by Certbot
|
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
if ($host = cms.marcleopold.isnet.uk) {
|
if ($host = leopold.rayelliott.dev) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
} # managed by Certbot
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
listen 80;
|
|
||||||
listen [::]80;
|
|
||||||
|
|
||||||
server_name cms.marcleopold.isnet.uk;
|
server_name leopold.rayelliott.dev;
|
||||||
|
listen 80;
|
||||||
return 404; # managed by Certbot
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
if ($host = marcleopold.isnet.uk) {
|
if ($host = cms.leopold.rayelliott.dev) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
} # managed by Certbot
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
listen 80;
|
|
||||||
listen [::]80;
|
|
||||||
|
|
||||||
server_name marcleopold.isnet.uk;
|
server_name cms.leopold.rayelliott.dev;
|
||||||
|
listen 80;
|
||||||
return 404; # managed by Certbot
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue