... | ... | @@ -87,4 +87,23 @@ location /test-webdienst { |
|
|
proxy_pass https://v000155.adm.ds.fhnw.ch/10.0.3.24;
|
|
|
}
|
|
|
```
|
|
|
**proxy_pass** value ist wie folgt aufgebaut: https://[hostname-des-container-servers]/[interne-ip-adresse-des-containers]; |
|
|
\ No newline at end of file |
|
|
**proxy_pass** value ist wie folgt aufgebaut: https://[hostname-des-container-servers]/[interne-ip-adresse-des-containers];
|
|
|
|
|
|
## Beispiel Für die Frontend App:
|
|
|
|
|
|
`/etc/nginx/conf.d/locations/antrag.conf`
|
|
|
|
|
|
```
|
|
|
location /antrag {
|
|
|
root /var/www/html;
|
|
|
index index.html;
|
|
|
}
|
|
|
|
|
|
```
|
|
|
Zusätzlich braucht es noch einen Link im **/var/www/html** damit das routing funktioniert. Die Frontend ist ausgecheckt unter **/home/django/admintools-frontend**
|
|
|
|
|
|
```
|
|
|
cd /var/www/html
|
|
|
ln -s /home/django/admintools-frontend/dist antrag
|
|
|
ls -al
|
|
|
lrwxrwxrwx 1 root root 37 May 21 10:04 antrag -> /home/django/admintools-frontend/dist |
|
|
\ No newline at end of file |