because config.xml is much too old and udn para is static and not unique. - Also generate a config-example.xml, a new config-new.xml and a config-diff.xml which show the new parameter in a newer gerbera version. - Add README.SUSE. - Add vhost configuration for apache nginx. - Fix suse-logrotate-user-writable-log-dir /var/log/gerbera gerbera:gerbera 0755 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/gerbera?expand=0&rev=66
21 lines
789 B
Plaintext
21 lines
789 B
Plaintext
server {
|
|
listen gerbera.DOMAINNAME:80;
|
|
server_name gerbera.DOMAINNAME;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
|
|
# install sub filter module and enable in nginx.conf
|
|
# load_module /usr/lib64/nginx/modules/ngx_http_subs_filter_module.so;
|
|
sub_filter_once off;
|
|
sub_filter_types text/html application/json;
|
|
sub_filter 'http://GERBERA_IP:GERBERA_PORT' 'http://$host:$server_port';
|
|
|
|
proxy_pass http://GERBERA_IP:GERBERA_PORT/;
|
|
}
|
|
}
|