Compare commits

..

1 Commits

Author SHA1 Message Date
Ray Elliott fb92d2df98 update README 2020-05-11 22:34:11 +03:00
5 changed files with 29 additions and 41 deletions

View File

@ -1,17 +1,23 @@
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XCR12ZM2L1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XCR12ZM2L1', { 'anonymize_ip': true });
</script>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
<script type="text/javascript">
var owa_baseUrl = 'https://owa.isnet.uk/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', '0c3a9f11563be70da80f493a590b46d1']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
</script>
</html>

View File

@ -69,6 +69,7 @@ module.exports = {
*/
plugins: [
{ src: '~/plugins/Vuelidate' },
// { src: '~/plugins/owa.js', mode: 'client' }
],
/*

12
app/plugins/owa.js Normal file
View File

@ -0,0 +1,12 @@
/* eslint-disable */
export default ({ app }) => {
if (process.env.NODE_ENV !== 'production') return
app.router.afterEach((to, from) => {
if (window.owa_cmds) {
window.owa_cmds.push(['trackPageView']);
window.owa_cmds.push(['trackClicks']);
}
})
}

View File

@ -1,7 +1,6 @@
## Notes
**DO NOT** forget to create the directories before running docker-compose the
first time otherwise they'll be created with `root` permissions and cause
everything to go to shit.
first time otherwise they'll be created with `root` permissions.
## For a persistent database

View File

@ -1,9 +1,5 @@
version: "3"
networks:
traefik-proxy:
external: true
services:
nuxt:
build: ./app/
@ -11,8 +7,6 @@ services:
restart: unless-stopped
ports:
- ${URL_INTERNAL}:3013:3013
networks:
- traefik-proxy
environment:
- URL_INTERNAL=${URL_INTERNAL}
- URL_CMS=${URL_CMS}
@ -21,43 +15,19 @@ services:
- PORT_CMS=${PORT_CMS}
command:
"npm run start"
labels:
- "traefik.enable=true"
- "traefik.http.routers.leopold-app.entrypoints=http"
- "traefik.http.routers.leopold-app.rule=Host(`leopold.rayelliott.dev`)"
- "traefik.http.middlewares.leopold-app-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.leopold-app.middlewares=traefik-https-redirect"
- "traefik.http.routers.leopold-app-secure.entrypoints=https"
- "traefik.http.routers.leopold-app-secure.rule=Host(`leopold.rayelliott.dev`)"
- "traefik.http.routers.leopold-app-secure.tls=true"
- "traefik.http.routers.leopold-app-secure.tls.certresolver=http"
- "traefik.docker.network=traefik-proxy"
octobercms:
image: aspendigital/octobercms:latest
build: ./cms/
restart: unless-stopped
restart: always
ports:
- ${URL_INTERNAL}:3014:80
networks:
- traefik-proxy
environment:
- ENABLE_CRON=true
- APP_DEBUG=false
- INIT_PLUGINS=true
- APP_URL=${URL_CMS}
- CMS_LINK_POLICY=force
labels:
- "traefik.enable=true"
- "traefik.http.routers.leopold-cms.entrypoints=http"
- "traefik.http.routers.leopold-cms.rule=Host(`cms.leopold.rayelliott.dev`)"
- "traefik.http.middlewares.leopold-cms-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.leopold-cms.middlewares=traefik-https-redirect"
- "traefik.http.routers.leopold-cms-secure.entrypoints=https"
- "traefik.http.routers.leopold-cms-secure.rule=Host(`cms.leopold.rayelliott.dev`)"
- "traefik.http.routers.leopold-cms-secure.tls=true"
- "traefik.http.routers.leopold-cms-secure.tls.certresolver=http"
- "traefik.docker.network=traefik-proxy"
volumes:
- ./cms/plugins:/var/www/html/plugins
- ./cms/storage/app:/var/www/html/storage/app