Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768329
D1310.id3371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1310.id3371.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1310: Serve /servers-log/all.json API request
Attached
Detach File
Event Timeline
Log In to Comment