From 64da009acba520cda06145ce4f1ff1ee5d136ab0 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 13 Feb 2022 21:24:52 -0500 Subject: [PATCH] Local dev configs for nginx (untested) --- localdev/nginx-http-config/storyteller | 27 ++++++++++++++++++++++ localdev/nginx-http-config/storyteller-ssl | 26 +++++++++++++++++++-- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/localdev/nginx-http-config/storyteller b/localdev/nginx-http-config/storyteller index 451cab6d48..9410d80522 100644 --- a/localdev/nginx-http-config/storyteller +++ b/localdev/nginx-http-config/storyteller @@ -10,6 +10,7 @@ # - /usr/local/etc/nginx/sites-enabled/{name-of-site} (for default nginx install) # +# API backend over plain HTTP server { listen 80; server_name api.jungle.horse; @@ -19,6 +20,20 @@ server { proxy_redirect off; } } + +# TODO(2022-02-13): This is new and untested +# WebSocket API backend over plain HTTP +server { + listen 80; + server_name ws.jungle.horse; + location / { + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:54321; + proxy_redirect off; + } +} + +# Javascript frontend over plain HTTP server { listen 80; server_name jungle.horse; @@ -28,3 +43,15 @@ server { proxy_redirect off; } } + +# TODO(2022-02-13): This is new and untested +# Javascript frontend #2 (OBS Layer) over plain HTTP +server { + listen 80; + server_name obs.jungle.horse; + location / { + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:7001; + proxy_redirect off; + } +} diff --git a/localdev/nginx-http-config/storyteller-ssl b/localdev/nginx-http-config/storyteller-ssl index 65bef40313..886b5fc264 100644 --- a/localdev/nginx-http-config/storyteller-ssl +++ b/localdev/nginx-http-config/storyteller-ssl @@ -48,10 +48,21 @@ server { } } +# TODO(2022-02-13): This is new and untested +# WebSocket API backend over plain HTTP +server { + listen 80; + server_name ws.jungle.horse; + location / { + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:54321; + proxy_redirect off; + } +} + # Javascript frontend over plain HTTP server { listen 80; - # server_name www.jungle.horse; server_name jungle.horse; location / { proxy_set_header Host $host; @@ -60,6 +71,18 @@ server { } } +# TODO(2022-02-13): This is new and untested +# Javascript frontend (OBS Layer) over plain HTTP +server { + listen 80; + server_name obs.jungle.horse; + location / { + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:7001; + proxy_redirect off; + } +} + # Javascript frontend over SSL server { listen 443 ssl; @@ -74,4 +97,3 @@ server { proxy_redirect off; } } -