B2share dummy server in Python with Flask.
Eighter run through Apache (ProxyPass) or as standalone.
NOTE: Access-Control-Allow-Origin
must be set if alternate ports/ hosts are used!
Prerequisites
- Python 2.7
- Pip
- Virtualenv
Install
git clone [email protected]:EUDAT-B2SHARE/ui-server.git
cd ui-server/
virtualenv .dev
. .dev/bin/activate
python setup.py develop
Run
python scripts/b2share-serve
Apache ProxyPass
<VirtualHost *:80>
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /backend/>
ProxyPass http://x.x.x.x:5000/
ProxyPassReverse http://x.x.x.x:5000/
</Location>
</VirtualHost>