-
Notifications
You must be signed in to change notification settings - Fork 0
Update docker container for latest python #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,42 +1,60 @@ | ||
| # the upstream component nginx needs to connect to | ||
| upstream buildingsync_website_upsteam { | ||
| # server 127.0.0.1:8080; | ||
| server unix:///tmp/uwsgi-buildingsync-website.sock; | ||
| user nginx; | ||
| worker_processes auto; | ||
| error_log /var/log/nginx/error.log warn; | ||
| pid /var/run/nginx.pid; | ||
| daemon off; | ||
|
|
||
| events { | ||
| worker_connections 1024; | ||
| } | ||
|
|
||
| # configuration of the server | ||
| server { | ||
| listen 80 default_server; | ||
| server_name localhost; | ||
| charset utf-8; | ||
| http { | ||
| include /etc/nginx/mime.types; | ||
| default_type application/octet-stream; | ||
|
|
||
| log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
| '$status $body_bytes_sent "$http_referer" ' | ||
| '"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
|
||
| access_log /var/log/nginx/access.log main; | ||
|
|
||
| sendfile on; | ||
| keepalive_timeout 65; | ||
|
|
||
| # configuration of the server | ||
| server { | ||
| listen 80; | ||
| server_name localhost; | ||
| charset utf-8; | ||
|
|
||
| # increase the timeouts (large files can take awhile to upload) | ||
| # These are probably not needed, but increasing anyway | ||
| proxy_connect_timeout 600; | ||
| proxy_send_timeout 600; | ||
| proxy_read_timeout 600; | ||
| send_timeout 600; | ||
| # increase the timeouts (large files can take awhile to upload) | ||
| # These are probably not needed, but increasing anyway | ||
| proxy_connect_timeout 600; | ||
| proxy_send_timeout 600; | ||
| proxy_read_timeout 600; | ||
| send_timeout 600; | ||
|
|
||
| # max upload size | ||
| client_max_body_size 75M; # adjust to taste | ||
| client_body_timeout 6000; | ||
| # max upload size | ||
| client_max_body_size 75M; # adjust to taste | ||
| client_body_timeout 6000; | ||
|
|
||
| location = /favicon.ico { access_log off; log_not_found off; } | ||
| location /media { | ||
| alias /srv/buildingsync-website/bsyncviewer/media; | ||
| } | ||
| location /static { | ||
| alias /srv/buildingsync-website/bsyncviewer/collected_static; | ||
| } | ||
| location /documentation/ { | ||
| alias /srv/buildingsync-website/bsyncviewer/media/generated_docs/; | ||
| try_files $uri.html =404; | ||
| } | ||
| location = /favicon.ico { access_log off; log_not_found off; } | ||
| location /media { | ||
| alias /srv/buildingsync-website/bsyncviewer/media; | ||
| } | ||
| location /static { | ||
| alias /srv/buildingsync-website/bsyncviewer/collected_static; | ||
| } | ||
| location /documentation/ { | ||
| alias /srv/buildingsync-website/bsyncviewer/media/generated_docs/; | ||
| try_files $uri.html =404; | ||
| } | ||
|
|
||
| location / { | ||
| uwsgi_pass buildingsync_website_upsteam; | ||
| uwsgi_read_timeout 600; | ||
| uwsgi_send_timeout 600; | ||
| include /etc/nginx/uwsgi_params; | ||
| location / { | ||
| uwsgi_pass unix:///tmp/uwsgi-buildingsync-website.sock; | ||
nllong marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| uwsgi_read_timeout 600; | ||
| uwsgi_send_timeout 600; | ||
| include /etc/nginx/uwsgi_params; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.