Browse Source

不提供 https

reghao 2 days ago
parent
commit
6726dc2e2f
2 changed files with 1 additions and 21 deletions
  1. 0 1
      docker-compose.yml
  2. 1 20
      nginx.conf

+ 0 - 1
docker-compose.yml

@@ -10,7 +10,6 @@ services:
     volumes:
       - /etc/localtime:/etc/localtime:ro
       - /opt/docker/ngxflv/conf/nginx.conf:/usr/local/nginx/conf/nginx.conf
-      - /opt/docker/ngxflv/ssl:/data/ssl
       - /opt/docker/ngxflv/rtmp:/data/rtmp
     deploy:
       resources:

+ 1 - 20
nginx.conf

@@ -18,22 +18,7 @@ http {
     access_log /dev/stdout;
 
     server {
-        listen 80;
-        server_name live.reghao.cn;
-        rewrite ^(.*) https://$host permanent;
-    }
-    server {
-        listen 443 ssl;
-        server_name live.reghao.cn;
-
-        ssl_certificate   /data/ssl/reghao.cn/fullchain.cer;
-        ssl_certificate_key  /data/ssl/reghao.cn/reghao.cn.key;
-        ssl_protocols TLSv1.2 TLSv1.3;
-        ssl_ciphers HIGH:!aNULL:!MD5;
-        ssl_prefer_server_ciphers on;
-        ssl_session_cache shared:SSL:10m;
-        ssl_session_timeout 10m;
-
+        listen 8080;
         location /live {
             flv_live on; #打开 HTTP 播放 FLV 直播流功能
             chunked_transfer_encoding on; #支持 'Transfer-Encoding: chunked' 方式回复
@@ -44,10 +29,6 @@ http {
         location /hls {
             types {
                 application/vnd.apple.mpegurl m3u8;       ssl_protocols TLSv1.2 TLSv1.3;
-                ssl_ciphers HIGH:!aNULL:!MD5;
-                ssl_prefer_server_ciphers on;
-                ssl_session_cache shared:SSL:10m;
-                ssl_session_timeout 10m;
                 video/mp2t ts;
             }