Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
server { | ||
set $appdir "/home/uchicagohvz/app"; | ||
|
||
listen 443 ssl; | ||
server_name www.uchicagohvz.org; | ||
ssl_certificate ssl/uchicagohvz.org/cert.pem; | ||
ssl_certificate_key ssl/uchicagohvz.org/private.key; | ||
include ssl.conf; | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:8001; | ||
client_max_body_size 32M; | ||
access_log /var/log/nginx/uchicagohvz.log; | ||
} | ||
|
||
location /chat { | ||
proxy_pass http://127.0.0.1:36452; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
|
||
location /static { | ||
alias $appdir/uchicagohvz/static; | ||
} | ||
|
||
location /media { | ||
alias $appdir/uchicagohvz/media; | ||
} | ||
|
||
|
||
location /favicon.ico { | ||
alias $appdir/uchicagohvz/static/favicon.ico; | ||
} | ||
|
||
location /apple-touch-icon.png { | ||
return 404; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen 443 ssl; | ||
server_name uchicagohvz.org www.uchicagohvz.org; | ||
ssl_certificate ssl/uchicagohvz.org/cert.pem; | ||
ssl_certificate_key ssl/uchicagohvz.org/private.key; | ||
include ssl.conf; | ||
|
||
location / { | ||
rewrite ^ https://www.uchicagohvz.org$uri permanent; | ||
} | ||
} |