Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
Make ttio-proxy independent from frontend and api
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Schmidmeister committed Jun 25, 2017
1 parent db018fb commit 332bc43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ server {
include ssl_config;

location / {
fastcgi_pass ttio-api:9000;
fastcgi_param SCRIPT_FILENAME /data/code/API/index.php;
include fastcgi_params;
return 404 'not found';
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/ttio-web/units/ttio-proxy.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=timetab.io Proxy
After=ttio-frontend.service ttio-api.service docker.service
Requires=ttio-frontend.service ttio-api.service docker.service
After=docker.service
Requires=docker.service
BindsTo=ttio-web.target

[Service]
Expand Down
5 changes: 1 addition & 4 deletions packages/ttio-web/units/ttio-web.target
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
Description=timetab.io Web
After=docker.service
Requires=docker.service
Wants=ttio-api.service \
ttio-frontend.service \
ttio-proxy.service \
ttio-workers.target
Wants=ttio-proxy.service

[Install]
WantedBy=default.target

0 comments on commit 332bc43

Please sign in to comment.