diff options
author | Thomas Fanninger | 2017-01-22 11:04:05 +0100 |
---|---|---|
committer | Thomas Fanninger | 2017-01-22 11:04:05 +0100 |
commit | a47038058bcbfbffde8bd87dc72b9a589f12e332 (patch) | |
tree | 65205a6b1d3b4674fc1275aab66821097f54c97f /pydiocaddy.conf | |
download | aur-a47038058bcbfbffde8bd87dc72b9a589f12e332.tar.gz |
Initial version of pydio-booster
Diffstat (limited to 'pydiocaddy.conf')
-rw-r--r-- | pydiocaddy.conf | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/pydiocaddy.conf b/pydiocaddy.conf new file mode 100644 index 000000000000..6c723fb1401c --- /dev/null +++ b/pydiocaddy.conf @@ -0,0 +1,68 @@ +http://127.0.0.1:8090 { + pydiows /ws { + pre { + if {>Cookie} has "AjaXplorer" + type request + url http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT?get_action=keystore_generate_auth_token&device=websocket + cookie AjaXplorer + out token + } + pre { + type request + url http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT/api/pydio/ws_authenticate?key=TOKENP:TOKENS + query auth_hash + query auth_token + out user + } + } + header /io { + Access-Control-Allow-Origin http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT + Access-Control-Request-Headers * + Access-Control-Allow-Methods POST + Access-Control-Allow-Headers Range + Access-Control-Allow-Credentials true + } + pydioupload /io { + pre { + type node + out node + } + pre { + if {query} has "minisite_session" + type request + url http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT?get_action=keystore_generate_auth_token&device=upload + query minisite_session + cookie AjaXplorer_Shared + out token + } + pre { + if {query} not_has "minisite_session" + if {>Cookie} has "AjaXplorer=" + type request + url http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT?get_action=keystore_generate_auth_token&device=upload + cookie AjaXplorer + out token + } + pre { + type request + url http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT/api/{repo}/upload/put/{nodedir}?xhr_uploader=true + header X-File-Direct-Upload request-options + header X-Pydio-Admin-Auth TOKENP:TOKENS + header X-File-Name {nodename} + query * + out options + } + post { + type request + url http://YOUR_HOSTNAME:YOUR_OPTIONAL_PORT/api/{repo}/upload/put/{nodedir}?xhr_uploader=true + header X-File-Direct-Upload upload-finished + header X-Pydio-Admin-Auth TOKENP:TOKENS + header X-File-Name {nodename} + query auth_hash + query auth_token + out body + } + } + pydioadmin /admin + basicauth /admin TOKENP TOKENS +}
\ No newline at end of file |