Let's say you want to host domains first.com and second.com.
Create folders for their files:
| #替换youtube-dl/extractor/youtube.py的_get_automatic_captions函数 | |
| def _get_automatic_captions(self, video_id, webpage): | |
| """We need the webpage for getting the captions url, pass it as an | |
| argument to speed up the process.""" | |
| self.to_screen('%s: Looking for automatic captions' % video_id) | |
| err_msg = 'Couldn\'t find automatic captions for %s' % video_id | |
| pattern = r'var\s*ytInitialPlayerResponse\s*=\s*({.+?});' |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| nginx.conf: | | |
| user nginx; | |
| worker_processes 3; | |
| error_log /var/log/nginx/error.log; | |
| events { |
| server { | |
| listen 443 ssl; | |
| server_name xxx.xx.io | |
| ssl on; | |
| ssl_certificate /etc/asterisk/certs/xxx.io.pem; | |
| ssl_certificate_key /etc/asterisk/certs/xxx.io.key; | |
| ssl_session_timeout 5m; |