-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #653 from replicatedhq/joshs/SC-109666-2
Update Nginx
- Loading branch information
Showing
4 changed files
with
62 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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 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 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,27 +1,33 @@ | ||
# mysite_nginx.conf | ||
|
||
# the upstream component nginx needs to connect to | ||
upstream flask { | ||
server unix:/tmp/app.sock; # for a file socket | ||
# server 127.0.0.1:8001; # for a web port socket (we'll use this first) | ||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
# configuration of the server | ||
server { | ||
# the port your site will be served on, default_server indicates that this server block | ||
# is the block to use if no blocks match the server_name | ||
listen 80 default_server; | ||
http { | ||
# the upstream component nginx needs to connect to | ||
upstream flask { | ||
server unix:/tmp/app.sock; # for a file socket | ||
# server 127.0.0.1:8001; # for a web port socket (we'll use this first) | ||
} | ||
|
||
# the domain name it will serve for | ||
server_name get.replicated.com; # substitute your machine's IP address or FQDN | ||
charset utf-8; | ||
# configuration of the server | ||
server { | ||
# the port your site will be served on, default_server indicates that this server block | ||
# is the block to use if no blocks match the server_name | ||
listen 80 default_server; | ||
|
||
# max upload size | ||
client_max_body_size 75M; # adjust to taste | ||
# the domain name it will serve for | ||
server_name get.replicated.com; # substitute your machine's IP address or FQDN | ||
charset utf-8; | ||
|
||
# Finally, send all non-media requests to the Flask server. | ||
location / { | ||
uwsgi_pass flask; | ||
include /home/docker/code/uwsgi_params; # the uwsgi_params file you installed | ||
} | ||
# max upload size | ||
client_max_body_size 75M; # adjust to taste | ||
|
||
# Finally, send all non-media requests to the Flask server. | ||
location / { | ||
uwsgi_pass flask; | ||
include /home/docker/code/uwsgi_params; # the uwsgi_params file you installed | ||
} | ||
} | ||
} |
This file contains 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