Page MenuHomeDevCentral

D1310.id3371.diff
No OneTemporary

D1310.id3371.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
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -54,4 +60,9 @@
- cwd: /srv/api/servers-log
- creates: /srv/api/servers-log/vendor
+/srv/api/data/servers-log-all.json:
+ file.managed:
+ - user: web-org-nasqueron-api-serverslog
+ - mode: 644
+
{% endif %}
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 /tmp/servers-log-all.json;
+ }
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 07:32 (16 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259515
Default Alt Text
D1310.id3371.diff (1 KB)

Event Timeline