Commit e6c7a080 authored by Carina Antunes's avatar Carina Antunes
Browse files

HOTFIX: remove secret from git

parent 4193b237
CERN_SEARCH_REMOTE_APP_RESOURCE=dev-cern-search.web.cern.ch
CERN_SEARCH_SERVER_NAME=dev-cern-search.web.cern.ch
INVENIO_APP_ALLOWED_HOSTS=['localhost', 'nginx','dev-cern-search.web.cern.ch']
INVENIO_CERN_APP_CREDENTIALS={'consumer_key':'dev-cern-search','consumer_secret':'H55huuLaDZKT20vfHZZLg1gOYl2wn7018uWOqoxNhks1'}
INVENIO_CERN_APP_CREDENTIALS={'consumer_key':'dev-cern-search','consumer_secret':'secret'}
INVENIO_JSONSCHEMAS_HOST=dev-cern-search.web.cern.ch
......@@ -29,6 +29,7 @@ secrets/
env/
*.ini
.env*.dev
# Debug and other logs
......
......@@ -12,30 +12,36 @@ documents and search among them when needed!
## Docker (recommended)
1. Run `make env MODE=test`
2. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
3. Chrome https:://localhost
3. Chrome https://localhost
Read more on the makefile.
## Docker (connected to cern sso)
## docker + pipenv: Read more on the makefile
1. Run `make local-env MODE=test`
2. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
## [NOTE: CERN ADMINS ONLY] - Docker (connected to cern sso)
1. Use Teigi to obtain oauth credentials
`tbag show --hg cernsearch oauth_dev-cern-search`
1. Edit /etc/hosts and add line:
2. Edit `.env-staging` and edit `INVENIO_CERN_APP_CREDENTIALS`: replace in `secret` with the key you obtained.
3. Edit /etc/hosts and add line:
`127.0.0.1 dev-cern-search.web.cern.ch`
2. Edit docker-compose.test.yml and add `- .env-staging` under:
4. Edit docker-compose.test.yml and add `- .env-staging` under:
```
env_file:
- .env
```
3. Run `make env-staging MODE=test`
4. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
5. Chrome https://dev-cern-search.web.cern.ch/ (without proxy to cern on)
## docker + pipenv: Read more on the makefile
1. Run `make local-env MODE=test`
2. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
5. Run `make env-staging MODE=test`
6. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
7. Chrome https://dev-cern-search.web.cern.ch/ (without proxy to cern on)
## TLS - How to install certificate
Install generated certificate `nginx/tls/cern.ch.crt` locally.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment