~boringcactus/pig.observer

dca4d795198657235dad816f20ed6eb8c78e1b8d — Melody Horn 1 year, 10 months ago 8490416
don't handle SSL ourselves oops, part 2
1 files changed, 0 insertions(+), 13 deletions(-)

M nginx.conf
M nginx.conf => nginx.conf +0 -13
@@ 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;