Page MenuHomeDevCentral

D2827.diff
No OneTemporary

D2827.diff

diff --git a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/api.conf b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/api.conf
--- a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/api.conf
+++ b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/api.conf
@@ -14,11 +14,27 @@
# and will be lost if the state is redeployed.
# </auto-generated>
+# -------------------------------------------------------------
+# Back-end for API services
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+upstream docker-prod-datasources {
+ server 172.27.27.5:19080;
+}
+
+upstream docker-prod-registry {
+ server 172.27.27.5:20080;
+}
+
upstream vault {
server 172.27.27.7:8200;
# 2 servers should be added for HA, with a quorum for a Raft consensus
}
+# -------------------------------------------------------------
+# api.nasqueron.org configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
server {
listen 80;
listen [::]:80;
@@ -46,7 +62,7 @@
}
location /datasources {
- proxy_pass http://docker-002:19080;
+ proxy_pass http://docker-prod-datasources;
include includes/proxy;
include includes/cors-open;
}
@@ -72,7 +88,7 @@
}
location /docker/registry {
- proxy_pass http://docker-001.nasqueron.org:20080/;
+ proxy_pass http://docker-prod-registry/;
include includes/proxy;
include includes/cors-open;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 17:00 (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306599
Default Alt Text
D2827.diff (1 KB)

Event Timeline