User Tools

Site Tools


pikvm:https_certificates_for_services_on_other_machines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pikvm:https_certificates_for_services_on_other_machines [2025/02/15 23:14] adminpikvm:https_certificates_for_services_on_other_machines [2025/02/16 00:51] (current) admin
Line 26: Line 26:
   location / {   location / {
         proxy_redirect off;         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-real-ip $remote_addr;
         proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;         proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;
         proxy_set_header x-forwarded-proto https;         proxy_set_header x-forwarded-proto https;
         proxy_set_header front-end-https on;         proxy_set_header front-end-https on;
 +        client_max_body_size 20m;
         proxy_pass http://192.168.1.150:30027;         proxy_pass http://192.168.1.150:30027;
         }         }
Line 45: Line 47:
   }   }
 } }
 +```
 +
 +## Service configurations
 +
 +### nextcloud
 +
 +Edit the `config.php` for example in the container nextcloud is running in: 
 +
 +```php
 +  [...],
 +  'trusted_domains' => 
 +  array (
 +    0 => '127.0.0.1',
 +    1 => 'localhost',
 +    2 => 'nextcloud',
 +    3 => 'opensky.machine-deck.jeffries-tube.at',
 +  ),
 +  'overwriteprotocol' => 'https',
 +  'trusted_proxies' => ['192.168.1.235'],
 +  'forwarded_for_headers' => ['HTTP_X_FORWARDED', 'X_REAL_IP', 'FRONT_END_HTTPS', 'X_FORWARDED_PROTO'],
 ``` ```
pikvm/https_certificates_for_services_on_other_machines.1739657676.txt.gz · Last modified: by admin