Pacifica Proxy
Project description
Pacifica Smart Proxy Service
This service provides external access with some basic logic to redirect or obfuscate access to other Pacifica services that are intended to be internal only.
Files Access
The archive interface service is intended to be used by internal services to access files off the archive by file ID only. This can be easily iterated over by external users and should not be exposed externally. This service accepts a hashsum provided by the user and looks up a file ID based on that hashsum. The service then redirects the request without knowledge of the user to the archive interface to pull the file.
File Access API
Example curl command
curl http://localhost:8180/files/sha1/f90a581a5099079a8f1f582dd3643b6e060cc551
If the file exists the file is given as an octet-stream to the user. The disposition header is also set with the filename defined in the metadata for that file.
If the file does not exist a 404 Not Found
return code is given.
Configuration
If you are running this service behind nginx or apache this service can take advantage of proxy server configurations to remove a layer of redirection through this service that isn't needed.
The nginx configuration documentation
describes how to set this up and example nginx.conf files are provided in our
testing framework (travis/nginx.conf.in
).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pacifica_proxy-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d03f499ab4b48cee7c26bd926340363ac838cbc58dde1ef7d905f9e4ed9a687 |
|
MD5 | aa284782b570d91831662b4fbbc4ff3c |
|
BLAKE2b-256 | ba1860df2a4f81250f35c40b3e63649e66fe0cf100e65e82255e79d30c981e07 |
Hashes for pacifica_proxy-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b235fda9d2a39a16d9f0f23bd6a0e522f5d99bdc52c17e444c5a5fc11e1e364 |
|
MD5 | f780fb88158f865860e0a1261abe4f46 |
|
BLAKE2b-256 | dfa2f242621289b4ca81a47273345241c106fa36148beb6895858275d4a28163 |