pikvm:https_certificates_for_services_on_other_machines
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| pikvm:https_certificates_for_services_on_other_machines [2025/02/15 22:16] – created admin | pikvm:https_certificates_for_services_on_other_machines [2025/02/16 00:51] (current) – admin | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| # or | # or | ||
| kvmd-certbot certonly_webroot --agree-tos -n --email simar@gmx.net --expand -d pikvm.machine-deck.jeffries-tube.at, | kvmd-certbot certonly_webroot --agree-tos -n --email simar@gmx.net --expand -d pikvm.machine-deck.jeffries-tube.at, | ||
| + | ``` | ||
| + | |||
| + | ## Configure the virtual host | ||
| + | |||
| + | For example for `opensky`, create a directory `/ | ||
| + | ``` | ||
| + | server { | ||
| + | server_name opensky.machine-deck.jeffries-tube.at; | ||
| + | |||
| + | listen [::1]:443 ssl proxy_protocol; | ||
| + | http2 on; | ||
| + | include / | ||
| + | |||
| + | location / { | ||
| + | proxy_redirect off; | ||
| + | proxy_set_header host opensky.machine-deck.jeffries-tube.at; | ||
| + | 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 https; | ||
| + | proxy_set_header front-end-https on; | ||
| + | client_max_body_size 20m; | ||
| + | proxy_pass http:// | ||
| + | } | ||
| + | |||
| + | location / | ||
| + | return 301 $scheme:// | ||
| + | } | ||
| + | |||
| + | location / | ||
| + | return 301 $scheme:// | ||
| + | } | ||
| + | |||
| + | location ^~ / | ||
| + | return 301 $scheme:// | ||
| + | } | ||
| + | } | ||
| + | ``` | ||
| + | |||
| + | ## Service configurations | ||
| + | |||
| + | ### nextcloud | ||
| + | |||
| + | Edit the `config.php` for example in the container nextcloud is running in: | ||
| + | |||
| + | ```php | ||
| + | [...], | ||
| + | ' | ||
| + | array ( | ||
| + | 0 => ' | ||
| + | 1 => ' | ||
| + | 2 => ' | ||
| + | 3 => ' | ||
| + | ), | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| ``` | ``` | ||
pikvm/https_certificates_for_services_on_other_machines.1739654200.txt.gz · Last modified: by admin