Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cossin Sebastien
ehden-bordeaux-atlas
Commits
3d708d15
Commit
3d708d15
authored
Jan 03, 2021
by
cossins
Browse files
README: explain nginx atlas configuration
parent
f82bd981
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3d708d15
...
...
@@ -197,3 +197,38 @@ We cloned the github repository, moved to the latest release (v2.8.0)
git clone https://github.com/OHDSI/Atlas.git
git checkout refs/tags/v2.8.0
```
### Local configuration
Only nginx service is exposed with basic authentification required. WebAPI is access through Nginx with reverse proxy (default.conf):
```
location /WebAPI {
proxy_set_header Accept-Encoding "";
proxy_pass http://webapitomcat:8080;
}
```
Our config-local.js file looks like this:
```
js
define
([],
function
()
{
var
configLocal
=
{};
configLocal
.
api
=
{
name
:
'
EDS CHU Bordeaux
'
,
url
:
'
http://{HOSTNAME}:{NGINX_PORT}/WebAPI/
'
};
return
configLocal
;
});
```
where
*
{HOSTNAME} is the name of the server where the docker-compose services are deployed
*
{NGINX_PORT} is the NGINX port set in the .env file
move this configuration file to the Atlas folder:
```
bash
npm run build
tar
-zcf
atlas.tar.gz
*
sudo mv
atlas.tar.gz ../atlas/
# move it to the nginx volume
cd
../atlas/
sudo tar
-xf
atlas.tar.gz
# deploy
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment