Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3715807
D1314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
796 B
Referenced Files
None
Subscribers
None
D1314.diff
View Options
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
@@ -44,6 +44,16 @@
include includes/cors-open;
alias /srv/api/data/servers-log-all.json;
}
+
+ location /servers-log {
+ # Mount the microservice to /servers-log,
+ # removing the URL from the document URI.
+ rewrite ^/servers\-log/?(.*)$ /$1 break;
+
+ fastcgi_pass unix:/var/run/web/api.nasqueron.org/php-fpm.sock;
+ fastcgi_param SCRIPT_FILENAME /srv/api/servers-log/src/public/index.php;
+ include fastcgi_params;
+ }
}
server {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 09:29 (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231587
Default Alt Text
D1314.diff (796 B)
Attached To
Mode
D1314: Serve https://api.nasqueron.org/servers-log microservice in nginx
Attached
Detach File
Event Timeline
Log In to Comment