Created
June 19, 2020 20:30
-
-
Save puzan/3e2f7b9bdd07e30764ac0d07a387113b to your computer and use it in GitHub Desktop.
puzan.info - WebDav за https proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name www.read.puzan.info read.puzan.info; | |
location / { | |
# Rewrite destination header if it starts with https | |
set $destination $http_destination; | |
if ($destination ~ ^https://(.+)) { | |
set $destination http://$1; | |
more_set_input_headers "Destination: $destination"; | |
} | |
root /data/read; | |
dav_methods PUT DELETE MKCOL COPY MOVE; | |
dav_ext_methods PROPFIND OPTIONS; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment