Commit feee6fe652064a126d5daa5ea8894a14df5cb2d9
1 parent
703bf89c
Exists in
master
and in
13 other branches
Updating nginx configs
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
puppet/modules/colab/templates/nginx/site_default.erb
| ... | ... | @@ -4,9 +4,15 @@ upstream django { |
| 4 | 4 | |
| 5 | 5 | server { |
| 6 | 6 | listen 80 default_server; |
| 7 | + server_name _; | |
| 8 | + return 444; | |
| 9 | +} | |
| 10 | + | |
| 11 | +server { | |
| 12 | + listen 80 default_server; | |
| 7 | 13 | |
| 8 | 14 | root /; |
| 9 | - server_name localhost colab.interlegis.leg.br colab.interlegis.gov.br; | |
| 15 | + server_name colab.interlegis.leg.br colab.interlegis.gov.br colab-demo.tracy.com.br; | |
| 10 | 16 | |
| 11 | 17 | location @django { |
| 12 | 18 | proxy_hide_header Vary; |
| ... | ... | @@ -28,4 +34,4 @@ server { |
| 28 | 34 | location /static { |
| 29 | 35 | try_files /home/colab/colab/www$uri @django; |
| 30 | 36 | } |
| 31 | -} | |
| 32 | 37 | \ No newline at end of file |
| 38 | +} | ... | ... |