Skip to content

Commit

Permalink
Merge pull request #22 from saizai/patch-1
Browse files Browse the repository at this point in the history
Comment out Tor-specific config
  • Loading branch information
ioerror committed Sep 25, 2013
2 parents dcdd413 + 1c4adc9 commit 384d589
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions configs/nginx/nginx.conf
Expand Up @@ -74,12 +74,14 @@ server {

server_name example.com;
location / {
proxy_pass http://127.0.0.1:8118;
proxy_read_timeout 2000;
# Uncomment to route requests through Tor.
# proxy_pass http://127.0.0.1:8118;
# proxy_set_header Host $server_id.onion;
# proxy_read_timeout 2000;

if ($host ~* (.*).example.com) {
set $server_id $1;
}
proxy_set_header Host $server_id.onion;
# 31536000 == 1 year
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
add_header X-Frame-Options DENY;
Expand Down

0 comments on commit 384d589

Please sign in to comment.