mirror of
https://github.com/viq/NewsBlur.git
synced 2025-11-01 09:09:16 +00:00
Fixing nginx conf to support ssl.
This commit is contained in:
parent
d1fff25cdb
commit
f73c48ef84
1 changed files with 8 additions and 8 deletions
|
|
@ -1,13 +1,13 @@
|
|||
server {
|
||||
server_name newsblur.com;
|
||||
rewrite ^(.*) http://www.newsblur.com$1 permanent;
|
||||
}
|
||||
|
||||
upstream app_server {
|
||||
server 127.0.0.1:8000 fail_timeout=10 max_fails=3 ;
|
||||
server app02.newsblur.com:80 fail_timeout=10 max_fails=3 down;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name newsblur.com;
|
||||
rewrite ^(.*) http://www.newsblur.com$1 permanent;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 default_server ssl;
|
||||
|
|
@ -16,10 +16,10 @@ server {
|
|||
ssl_certificate_key /home/sclay/newsblur/config/certificates/www.newsblur.com.key;
|
||||
|
||||
client_max_body_size 4M;
|
||||
server_name app02.newsblur.com;
|
||||
server_name www.newsblur.com;
|
||||
|
||||
# if ($host = 'newsblur.com') {
|
||||
# rewrite ^/(.*)$ https://app02.newsblur.com/$1 permanent;
|
||||
# rewrite ^/(.*)$ https://www.newsblur.com/$1 permanent;
|
||||
# }
|
||||
|
||||
error_page 503 @maintenance;
|
||||
|
|
@ -58,7 +58,7 @@ server {
|
|||
alias /home/sclay/newsblur/media/robots.txt;
|
||||
}
|
||||
|
||||
location /munin/ {
|
||||
location /municn/ {
|
||||
alias /var/cache/munin/www/;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue