Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| proxmox [2024/01/07 12:47] – lehmann | proxmox [2024/01/07 22:20] (aktuell) – peters | ||
|---|---|---|---|
| Zeile 10: | Zeile 10: | ||
| Installation & Konfiguration Nginx | Installation & Konfiguration Nginx | ||
| - | < | + | < |
| + | |||
| + | Generierung eines temporären Snakeoil Cert, dadurch muss später keine config erneut angepasst werden | ||
| + | < | ||
| + | openssl req -x509 -nodes -days 1 -newkey rsa:2048 -keyout / | ||
| + | </ | ||
| < | < | ||
| < | < | ||
| - | listen 80; | + | server { |
| - | server_name DOMAINNAME; | + | listen 80; |
| + | | ||
| - | access_log / | + | access_log / |
| - | error_log / | + | |
| - | proxy_redirect off; | + | proxy_redirect off; |
| - | location / { | + | |
| - | | + | proxy_http_version 1.1; |
| - | | + | proxy_set_header Upgrade $http_upgrade; |
| - | | + | proxy_set_header Connection " |
| - | | + | proxy_pass https:// |
| - | | + | proxy_buffering off; |
| - | | + | client_max_body_size 0; |
| - | | + | proxy_connect_timeout 3600s; |
| - | | + | proxy_read_timeout 3600s; |
| - | | + | proxy_send_timeout 3600s; |
| - | | + | send_timeout 3600; |
| - | auth_basic " | + | |
| - | | + | auth_basic_user_file / |
| + | } | ||
| } | } | ||
| + | </ | ||
| + | < | ||
| + | htpasswd -c / | ||
| </ | </ | ||
| < | < | ||
| Zeile 42: | Zeile 52: | ||
| </ | </ | ||
| + | Wenn der Zugriff nun mittels Domainnamen im Webbrowser geschieht, per HTTP, sollte das Interface der Proxmox Konsole angezeigt werden. Certbot hilft uns, die Verbindung per SSL einzurichten sowie das Zertifikat automatisch zu aktualisieren. | ||
| + | |||
| + | < | ||
| + | |||
| + | Jetzt wird der Zugriff automatisch auf HTTPS weitergeleitet, | ||
| < | < | ||