{"id":80816,"date":"2020-05-10T23:06:21","date_gmt":"2020-05-10T15:06:21","guid":{"rendered":"http:\/\/4563.org\/?p=80816"},"modified":"2020-05-10T23:06:21","modified_gmt":"2020-05-10T15:06:21","slug":"nano-cf-panel%e6%90%ad%e5%bb%ba%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=80816","title":{"rendered":"nano-cf-panel\u642d\u5efa\u7684\u95ee\u9898"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>ZHT5178<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>nano-cf-panel\u642d\u5efa\u7684\u95ee\u9898<\/h3>\n<p>  \t\t\u521a\u89e3\u51b3\u4e86\u5b9d\u5854\u9ed8\u8ba4python\u7248\u672c\u548c\u672c\u9879\u76ee\u73af\u5883\u8981\u6c42\u7684\u7248\u672c\u4e0d\u540c\u7684\u73af\u5883\u95ee\u9898\uff0c<br \/>  \u4f46\u662f\u73b0\u5728\u53d1\u73b0\u603b\u662f502\u9519\u8bef<br \/>  \u8fd0\u884c uWSGI \u540e\u7684\u542f\u52a8\u65e5\u5fd7\uff1a<br \/>  uWSGI] getting INI configuration from panel.ini<br \/>   added mapping for \/static =&gt; static<br \/>  *** Starting uWSGI 2.0.18 (64bit) on  ***<br \/>  compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 10 May 2020 09:55:59<br \/>  os: Linux-5.6.5-1.el7.elrepo.x86_64 #1 SMP Thu Apr 16 14:02:22 EDT 2020<br \/>  nodename: static.100.97.217.95.clients.your-server.de<br \/>  machine: x86_64<br \/>  clock source: unix<br \/>  pcre jit disabled<br \/>  detected number of CPU cores: 8<br \/>  current working directory: \/www\/wwwroot\/cf.xxxxxx.com<br \/>  detected binary path: \/www\/wwwroot\/cf.xxxxxx.com\/cfp3_venv\/bin\/uwsgi<br \/>  uWSGI running as root, you can use &#8211;uid\/&#8211;gid\/&#8211;chroot options<br \/>  *** WARNING: you are running uWSGI as root !!! (use the &#8211;uid flag) *** <br \/>  chdir() to \/www\/wwwroot\/cf.xxxxxx.com<br \/>  *** WARNING: you are running uWSGI without its master process manager ***<br \/>  your processes number limit is 11605<br \/>  your memory page size is 4096 bytes<br \/>  detected max file descriptor number: 1024<br \/>  building mime-types dictionary from file \/etc\/mime.types&#8230;1060 entry found<br \/>  lock engine: pthread robust mutexes<br \/>  thunder lock: disabled (you can enable it with &#8211;thunder-lock)<br \/>  uWSGI http bound on 0.0.0.0:8001 fd 4<br \/>  spawned uWSGI http 1 (pid: 28092)<br \/>  uwsgi socket 0 bound to TCP address 127.0.0.1:44389 (port auto-assigned) fd 3<br \/>  uWSGI running as root, you can use &#8211;uid\/&#8211;gid\/&#8211;chroot options<br \/>  *** WARNING: you are running uWSGI as root !!! (use the &#8211;uid flag) *** <br \/>  Python version: 3.7.1 (default, May 10 2020, 17:05:03)<br \/>  Python main interpreter initialized at 0x138dd00<br \/>  uWSGI running as root, you can use &#8211;uid\/&#8211;gid\/&#8211;chroot options<br \/>  *** WARNING: you are running uWSGI as root !!! (use the &#8211;uid flag) *** <br \/>  python threads support enabled<br \/>  your server socket listen backlog is limited to 100 connections<br \/>  your mercy for graceful operations on workers is 60 seconds<br \/>  mapped 833760 bytes (814 KB) for 20 cores<br \/>  *** Operational MODE: preforking+threaded ***<br \/>  WSGI app 0 (mountpoint=&#8221;) ready in 1 seconds on interpreter 0x138dd00 pid: 28091 (default app)<br \/>  uWSGI running as root, you can use &#8211;uid\/&#8211;gid\/&#8211;chroot options<br \/>  *** WARNING: you are running uWSGI as root !!! (use the &#8211;uid flag) *** <br \/>  *** uWSGI is running in multiple interpreter mode ***<br \/>  spawned uWSGI worker 1 (pid: 28091, cores: 2)<br \/>  spawned uWSGI worker 2 (pid: 28094, cores: 2)<br \/>  spawned uWSGI worker 3 (pid: 28095, cores: 2)<br \/>  spawned uWSGI worker 4 (pid: 28096, cores: 2)<br \/>  spawned uWSGI worker 5 (pid: 28098, cores: 2)<br \/>  spawned uWSGI worker 6 (pid: 28101, cores: 2)<br \/>  spawned uWSGI worker 7 (pid: 28103, cores: 2)<br \/>  spawned uWSGI worker 8 (pid: 28105, cores: 2)<br \/>  spawned uWSGI worker 9 (pid: 28107, cores: 2)<br \/>  spawned uWSGI worker 10 (pid: 28109, cores: 2)<\/p>\n<p>  panel.ini\uff1a<\/p>\n<p>  http = 0.0.0.0:8001<br \/>  chdir = \/www\/wwwroot\/cf.xxxxxx.com<br \/>  wsgi-file=mysite\/wsgi.py<br \/>  processes = 10<br \/>  threads = 2<br \/>  static-map=\/static=static<\/p>\n<p>  nginx:<\/p>\n<p>  server {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listen 80;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; listen 443 ssl http2;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; server_name cf.xxxxxx.com;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;#\u4f60\u7684ip\u6216\u8005\u7ad9\u70b9\u57df\u540d<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log\/www\/wwwlogs\/cf.xxxxxx.com.log;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_log\/www\/wwwlogs\/cf.xxxxxx.com.error.log;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location \/{<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include \/www\/server\/nginx\/conf\/scgi_params;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uwsgi_pass 127.0.0.1:8001;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; #uwgis\u7684\u53cd\u5411\u4ee3\u7406\u63a5\u6536\u7aef\u53e3<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; #SSL-START SSL\u76f8\u5173\u914d\u7f6e\uff0c\u8bf7\u52ff\u5220\u9664\u6216\u4fee\u6539\u4e0b\u4e00\u884c\u5e26\u6ce8\u91ca\u7684404\u89c4\u5219<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; #error_page 404\/404.html;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; #HTTP_TO_HTTPS_START<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if ($server_port !~ 443){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite ^(\/.*)$ https:\/\/$host$1 permanent;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; #HTTP_TO_HTTPS_END<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_certificate&nbsp; &nbsp; \/www\/server\/panel\/vhost\/cert\/cf.xxxxxx.com\/fullchain.pem;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_certificate_key&nbsp; &nbsp; \/www\/server\/panel\/vhost\/cert\/cf.xxxxxx.com\/privkey.pem;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_prefer_server_ciphers on;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_session_cache shared:SSL:10m;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; ssl_session_timeout 10m;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; error_page 497https:\/\/$host$request_uri;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; #SSL-END<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #error_page 404 \/404.html;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # redirect server error pages to the static page \/50x.html<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_page 500 502 503 504 \/50x.html;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location = \/50x.html {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root html;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location \/static {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alias \/www\/wwwroot\/cf.xxxxxx.com\/static\/;#\u9759\u6001\u6587\u4ef6\u8def\u5f84<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; location \/templates {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alias \/www\/wwwroot\/cf.xxxxxx.com\/templates\/;#\u9759\u6001html\u6a21\u677f\u8def\u5f84<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<\/p>\n<p>  \u8bbf\u95ee\u76ee\u6807\u57df\u540d cf.xxxxxx.com<br \/>  \u8c03\u8bd5\u5668\u63a7\u5236\u53f0\u51fa\u73b0\uff1a<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; GET https:\/\/cf.xxxxxx.com\/ 502<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; favicon.ico:1 GET https:\/\/cf.xxxxxx.com\/favicon.ico 502<br \/>  \u547c\u53eb\u4f5c\u8005\u5927\u4f6c @tonyma<br \/>  \u975e\u5e38\u559c\u6b22\u8fd9\u4e2acfp\u5408\u4f5c\u9762\u677f\u5927\u6c14\u7684\u6837\u5b50\uff0c\u8fd8\u5e26\u591a\u8bed\u8a00\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>ZHT5178 \u5927\u4f6c\u6709\u8bdd\u8bf4 : n&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/80816"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80816"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/80816\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80816"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}