summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorokfprojz <jules+okfprojz@okfoc.us>2016-11-29 12:49:58 -0500
committerokfprojz <jules+okfprojz@okfoc.us>2016-11-29 12:49:58 -0500
commit3df75237494b66007822e7e7fca38f82b2083228 (patch)
tree7eadcdf7927b9a7f893ad0aef777540695e09d80
parentec41dd9dcc8e9af0d108297c6cfcfcef43d0d105 (diff)
nginx config files
-rw-r--r--new-reality/index.js42
-rw-r--r--newreality.sup.land19
-rw-r--r--tree.sup.land19
-rw-r--r--tree/index.js4
4 files changed, 40 insertions, 44 deletions
diff --git a/new-reality/index.js b/new-reality/index.js
index 666dc50..3e7cb76 100644
--- a/new-reality/index.js
+++ b/new-reality/index.js
@@ -6,10 +6,6 @@ var viewConfig = {
template: 'index',
data: [
{type: 'home', query: '*'},
- {type: 'press', query: '*'},
- {type: 'bio', query: '*'},
- {type: 'festival', query: '*'},
- {type: 'lecture', query: '*'},
]
}
@@ -26,53 +22,15 @@ var app = okcms.createApp({
title: {type: 'string'},
about: {type: 'string'},
},
- press: {
- id: {type: 'string', hidden: true},
- title: {type: 'string'},
- source: {type: 'string'},
- link: {type: 'string'},
- body: {type: 'text'},
- image: {type: 'image'},
- },
- bio: {
- id: {type: 'string', hidden: true},
- title: {type: 'string'},
- body: {type: 'text'},
- image: {type: 'image'},
- link: {type: 'string'},
- type: {type: 'enum', options: ['featured','cast','production'],
- },
- festival: {
- id: {type: 'string', hidden: true},
- title: {type: 'string'},
- link: {type: 'string'},
- date: {type: 'text'},
- image: {type: 'image'},
- },
- lecture: {
- id: {type: 'string', hidden: true},
- title: {type: 'string'},
- link: {type: 'string'},
- date: {type: 'text'},
- image: {type: 'image'},
- },
},
resources: [
{ type: 'home' },
- { type: 'press' },
- { type: 'bio' },
- { type: 'festival' },
- { type: 'lecture' },
],
views: {
'/': viewConfig,
'/home': viewConfig,
- '/press': viewConfig,
- '/team': viewConfig,
- '/festivals': viewConfig,
- '/lectures': viewConfig,
},
services: {
diff --git a/newreality.sup.land b/newreality.sup.land
new file mode 100644
index 0000000..ba19cf9
--- /dev/null
+++ b/newreality.sup.land
@@ -0,0 +1,19 @@
+
+upstream newreality_cms {
+ server 127.0.0.1:6516;
+}
+
+server {
+ listen 8070;
+ server_name newreality.sup.land;
+ client_max_body_size 50M;
+
+ location / {
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-NginX-Proxy true;
+ proxy_pass http://newreality_cms;
+ proxy_redirect off;
+ }
+}
diff --git a/tree.sup.land b/tree.sup.land
new file mode 100644
index 0000000..3c72729
--- /dev/null
+++ b/tree.sup.land
@@ -0,0 +1,19 @@
+
+upstream tree_cms {
+ server 127.0.0.1:6515;
+}
+
+server {
+ listen 8070;
+ server_name tree.sup.land;
+ client_max_body_size 50M;
+
+ location / {
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-NginX-Proxy true;
+ proxy_pass http://tree_cms;
+ proxy_redirect off;
+ }
+}
diff --git a/tree/index.js b/tree/index.js
index 38ea425..d66caca 100644
--- a/tree/index.js
+++ b/tree/index.js
@@ -40,7 +40,7 @@ var app = okcms.createApp({
body: {type: 'text'},
image: {type: 'image'},
link: {type: 'string'},
- type: {type: 'enum', options: ['featured','cast','production'],
+ type: {type: 'enum', options: ['featured','cast','production']},
},
festival: {
id: {type: 'string', hidden: true},
@@ -82,7 +82,7 @@ var app = okcms.createApp({
bucket: process.env.S3_BUCKET,
maxbytes: 1024*1024*2,
},
- }
+ },
}).listen(process.env.PORT || 1337)