Page MenuHomeDevCentral

D1310.id3362.diff
No OneTemporary

D1310.id3362.diff

diff --git a/roles/webserver-content/org/nasqueron/api.sls b/roles/webserver-content/org/nasqueron/api.sls
--- a/roles/webserver-content/org/nasqueron/api.sls
+++ b/roles/webserver-content/org/nasqueron/api.sls
@@ -32,6 +32,12 @@
- group: web
- dir_mode: 755
+/srv/api/data:
+ file.directory:
+ - user: deploy
+ - group: web
+ - dir_mode: 755
+
# -------------------------------------------------------------
# /servers-log micro service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
@@ -39,6 +39,11 @@
location ~ [^/]\.json(/|$) {
include includes/cors-open;
}
+
+ location = /servers-log/all.json {
+ include includes/cors-open;
+ alias /srv/api/data/servers-log-all.json;
+ }
}
server {
@@ -66,4 +71,9 @@
location ~ [^/]\.json(/|$) {
include includes/cors-open;
}
+
+ location = /servers-log/all.json {
+ include includes/cors-open;
+ alias /home/dereckson/dev/nasqueron/api/data/servers-log-all.json;
+ }
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 07:36 (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259742
Default Alt Text
D1310.id3362.diff (1 KB)

Event Timeline