software:middleware:installation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
software:middleware:installation [2019/04/09 15:08] – Erläuterung Server jau | software:middleware:installation [2019/04/27 16:05] – nginx Proxy Konfig, systemd Folge unwichtig jau | ||
---|---|---|---|
Zeile 209: | Zeile 209: | ||
==== nginx als Proxy (empfohlene Methode) ==== | ==== nginx als Proxy (empfohlene Methode) ==== | ||
- | Nginx ist ein schlanker Webserver/ | + | Nginx ist ein schlanker Webserver/ |
< | < | ||
Zeile 224: | Zeile 224: | ||
server { | server { | ||
listen 80; | listen 80; | ||
+ | listen [::]:80; | ||
location / { | location / { | ||
- | proxy_pass http://localhost:8080; | + | proxy_pass http://127.0.0.1:8080; |
include / | include / | ||
} | } | ||
Zeile 232: | Zeile 233: | ||
location /middleware { | location /middleware { | ||
rewrite ^/ | rewrite ^/ | ||
- | proxy_pass http://localhost:8080/; | + | proxy_pass http://127.0.0.1:8080/; |
} | } | ||
location /api { | location /api { | ||
rewrite ^/api(/.*)? $1; | rewrite ^/api(/.*)? $1; | ||
- | proxy_pass http://localhost:8080/; | + | proxy_pass http://127.0.0.1:8080/; |
} | } | ||
location /frontend { | location /frontend { | ||
rewrite ^/ | rewrite ^/ | ||
- | proxy_pass http://localhost:8080/; | + | proxy_pass http://127.0.0.1:8080/; |
} | } | ||
} | } | ||
Zeile 250: | Zeile 251: | ||
sudo ln -s / | sudo ln -s / | ||
</ | </ | ||
- | Dann nur noch bei Starten und in Bootprozess einbinden: | + | Dann nur noch Starten und in Bootprozess einbinden: |
< | < | ||
sudo systemctl start nginx | sudo systemctl start nginx |
software/middleware/installation.txt · Zuletzt geändert: 2023/03/27 21:14 von joha