update
This commit is contained in:
parent
31f863c8ce
commit
b89179d004
|
|
@ -685,7 +685,7 @@ function update_service($which_service)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'display';
|
case 'display';
|
||||||
$display = "mpv --vo=drm --drm-mode=" . $display_resolution . " --fs --keepaspect=no --audio-device=alsa/plughw:" . $display_audio;
|
$display = "mpv --hwdec=auto --demuxer-lavf-o=fflags=+discardcorrupt --vo=drm --drm-mode=" . $display_resolution . " --fs --keepaspect=no --audio-device=alsa/plughw:" . $display_audio;
|
||||||
if ($display_hdmi_sdi === "enable") {
|
if ($display_hdmi_sdi === "enable") {
|
||||||
$display .= ' --audio-format=s16 --audio-samplerate=48000 --audio-channels=stereo --audio-spdif=no';
|
$display .= ' --audio-format=s16 --audio-samplerate=48000 --audio-channels=stereo --audio-spdif=no';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
32
install.sh
32
install.sh
|
|
@ -24,22 +24,30 @@ EOL
|
||||||
cat > /etc/apache2/sites-available/default-ssl.conf << 'EOL'
|
cat > /etc/apache2/sites-available/default-ssl.conf << 'EOL'
|
||||||
<VirtualHost *:8443>
|
<VirtualHost *:8443>
|
||||||
|
|
||||||
|
ServerName localhost
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /var/www/encoder
|
DocumentRoot /var/www/encoder
|
||||||
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/encoder-ssl-error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/encoder-ssl-access.log combined
|
||||||
SSLEngine on
|
|
||||||
|
|
||||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
SSLEngine on
|
||||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
|
|
||||||
<FilesMatch "\.(?:cgi|shtml|phtml|php)$">
|
<Directory /var/www/encoder>
|
||||||
SSLOptions +StdEnvVars
|
Options Indexes FollowSymLinks
|
||||||
</FilesMatch>
|
AllowOverride All
|
||||||
<Directory /usr/lib/cgi-bin>
|
Require all granted
|
||||||
SSLOptions +StdEnvVars
|
</Directory>
|
||||||
</Directory>
|
|
||||||
|
<FilesMatch "\.(?:cgi|shtml|phtml|php)$">
|
||||||
|
SSLOptions +StdEnvVars
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
<Directory /usr/lib/cgi-bin>
|
||||||
|
SSLOptions +StdEnvVars
|
||||||
|
</Directory>
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
EOL
|
EOL
|
||||||
|
|
|
||||||
3
setup.sh
3
setup.sh
|
|
@ -1,4 +1,7 @@
|
||||||
sudo cp -r encoder/* /var/www/encoder/
|
sudo cp -r encoder/* /var/www/encoder/
|
||||||
|
sudo cp -r html/* /var/www/html/
|
||||||
sudo cp users.json /var/www/users.json
|
sudo cp users.json /var/www/users.json
|
||||||
sudo cp attempts.json /var/www/attempts.json
|
sudo cp attempts.json /var/www/attempts.json
|
||||||
|
DEVICE_ID="$(sudo cat /sys/class/dmi/id/product_uuid | tr -d '\n')"
|
||||||
|
sudo sed -i 's/certificatecertificatecertificatecertificate/'$DEVICE_ID'/g' /var/www/html/certification.html
|
||||||
sudo reboot
|
sudo reboot
|
||||||
Loading…
Reference in New Issue