Systems that has AmbientCapabilities support (usually kernel >= linux4.3)
[Unit]
Description=FRP Server Daemon
| host_file="/tmp/hosts-custom" | |
| if test -f "$host_file"; then | |
| rm $host_file | |
| echo "$host_file exists, now is removed." | |
| else | |
| echo "$host_file does not exist." | |
| fi | |
| domains="npupt.com 4.npupt.com 6.npupt.com checkipv6.dyndns.com checkipv6.dyndns.com checkipv6.dyndns.com checkipv6.dyndns.com" | |
| dns="223.5.5.5" |
AmbientCapabilities support (usually kernel >= linux4.3) [Unit]
Description=FRP Server Daemon
| # 生成 dhparam.pem 文件, 在命令行执行任一方法: | |
| # 方法1: 很慢 | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
| # 方法2: 较快 | |
| # 与方法1无明显区别. 2048位也足够用, 4096更强 | |
| openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096 |
The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.
These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.