aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-03 18:47:56 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-03 18:47:56 -0600
commitdca4d795198657235dad816f20ed6eb8c78e1b8d (patch)
treec05ad8dfc632aab82c85ebe34f1c8a15da3d1152
parent849041643160ecce8d3b554b7df4f3290a61c48b (diff)
downloadpig.observer-dca4d795198657235dad816f20ed6eb8c78e1b8d.tar.gz
pig.observer-dca4d795198657235dad816f20ed6eb8c78e1b8d.zip
don't handle SSL ourselves oops, part 2
-rw-r--r--nginx.conf13
1 files changed, 0 insertions, 13 deletions
diff --git a/nginx.conf b/nginx.conf
index ab33a90..76f33f1 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -3,19 +3,6 @@ server {
listen [::]:80;
server_name pig.observer;
- set $RD "";
- if ($scheme = http) {
- set $RD Y;
- }
-
- if ($host = pig.observer) {
- set $RD "${RD}Y";
- }
-
- if ($RD = YY) {
- return 301 https://$host$request_uri;
- }
-
add_header Onion-Location http://y4b244ai6krmmd6kjjiptqibjb4rvgf7lpeobhpk3j5vkvhqytt6ulyd.onion$request_uri;
charset utf-8;