prod deployement fully functionnal
This commit is contained in:
@@ -89,6 +89,35 @@ basex container will stay up
|
|||||||
|
|
||||||
you have to serve client/dist/index.html with your own webserver (e.g. nginx, apache, etc)
|
you have to serve client/dist/index.html with your own webserver (e.g. nginx, apache, etc)
|
||||||
|
|
||||||
|
### nginx conf
|
||||||
|
```nginx
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name domain.tld;
|
||||||
|
|
||||||
|
root /path/to/docker-gdp/client/dist/;
|
||||||
|
index index.html;
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
charset utf-8;
|
||||||
|
|
||||||
|
location ~/api(.*)$ {
|
||||||
|
proxy_pass http://127.0.0.1:8984$1;
|
||||||
|
#proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_buffer_size 128k;
|
||||||
|
proxy_buffers 4 256k;
|
||||||
|
proxy_busy_buffers_size 256k;
|
||||||
|
proxy_redirect off;
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Doc
|
## Doc
|
||||||
|
|
||||||
https://github.com/guidesDeParis/webapp/blob/master/install.md
|
https://github.com/guidesDeParis/webapp/blob/master/install.md
|
||||||
|
|||||||
+1
-1
Submodule client updated: 61303fde4d...3122fd9ccb
Reference in New Issue
Block a user