Skip to content

rightsstatements/rights-deploy

Repository files navigation

Ansible playbooks for rightsstatements.org deployment

Please refer to the inventory files to see default variable settings. Note that all servers in the inventory file must be members of a group that defines a proxy_env dict.

rights-app

rights-app is retrieved as a binary from the GitHub releases at rights_app_repo_url. It can be deployed by running something like the following

$ ansible-playbook -i staging app_deploy.yml --extra-vars "rights_app_release=v1.0.3"

This will download and unzip rights_app_release to rights_app_dest and run it on rights_app_port. Unless you have a specific reason for doing otherwise, the version used for rights_app_release should be the latest release listed on the rights-app release page.

If you just want to restart the currently deployed release with the current settings, run

$ ansible-playbook -i staging restart.yml

rights-proxy

rights-proxy is configured using Apache as a reverse proxy. /vocab, /data and /page go to the rights-app. It can be deployed by running

$ ansible-playbook -i staging proxy.yml

This will create an Apache virtual host that listens on port 80 and proxies as described above.

To configure HTTPS, copy certificate, key and chain file to the server and provide their location:

$ ansible-playbook -i staging proxy.yml --extra-vars "proxy_ssl_cert=/path/to/cert proxy_ssl_key=/path/to/key proxy_ssl_chain=/path/to/chain"

This will create an Apache virtual host that listens on port 443 and proxies as described above. Additionally, non-HTTPS URLs will be rewritten to HTTPS.

About

Ansible playbooks for rightsstatements.org deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages