Skip to content

Commit

Permalink
Merge pull request #27 from vapor-ware/mhink-version-sentinel-all
Browse files Browse the repository at this point in the history
Remove version sentinel.
  • Loading branch information
MatthewHink committed Jan 10, 2018
2 parents f4f6fa1 + 96bc677 commit b0f9df9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions configs/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ server {
include /etc/nginx/uwsgi_params;
}

location / {
# the VERSION_SENTINEL here gets replaced with the synse api version
# on image build in the Dockerfile.
return 301 $scheme://$http_host/synse/VERSION_SENTINEL$request_uri;
}

location ~ /synse/([1-9]*\.[1-9]*)/ {
add_header 'Access-Control-Allow-Origin' '*';
uwsgi_pass unix://etc/uwsgi/synse.sock;
Expand Down
1 change: 0 additions & 1 deletion dockerfile/release.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ RUN mkdir -p /etc/uwsgi \
&& ln -s /synse/configs/nginx/nginx.conf /etc/nginx/conf.d/nginx.conf \
&& ln -sf /proc/1/fd/1 /var/log/nginx/access.log \
&& ln -sf /proc/1/fd/2 /var/log/nginx/error.log \
&& sed -i -e "s/VERSION_SENTINEL/$(python synse/version.py api)/g" /synse/configs/nginx/nginx.conf \
&& mkdir /logs \
&& chown :www-data /logs \
&& chmod 775 /logs
Expand Down

0 comments on commit b0f9df9

Please sign in to comment.