| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 144d3ce commit fb5053c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,16 +138,13 @@ export default class PopupLayer { | |||
| 138 | 138 | infoDiv.style.display = 'none'; | |
| 139 | 139 | if (typeof this.container === 'string') { | |
| 140 | 140 | infoDiv.innerHTML = | |
| 141 | - '<div id="' + | ||
| 142 | - this.popupContentId + | ||
| 143 | - '" class="cesium-popup">' + | ||
| 144 | - // '<a class="cesium-popup-close-button" href="javascript:void(0)" onClick="function remove(){self.remove()}">×</a>' + | ||
| 145 | - '<div class="cesium-popup-content-wrapper">' + | ||
| 146 | - this.container + | ||
| 147 | - '</div>' + | ||
| 148 | - '<div class="cesium-popup-tip-container">' + | ||
| 149 | - '<div class="cesium-popup-tip" />' + | ||
| 150 | - '</div>' + | ||
| 141 | + '<div id="' + this.popupContentId + '" class="cesium-popup">' + | ||
| 142 | + '<div class="cesium-popup-content-wrapper">' + | ||
| 143 | + this.container + | ||
| 144 | + '</div>' + | ||
| 145 | + '<div class="cesium-popup-tip-container">' + | ||
| 146 | + '<div class="cesium-popup-tip" />' + | ||
| 147 | + '</div>' + | ||
| 151 | 148 | '</div>'; | |
| 152 | 149 | } else { | |
| 153 | 150 | let popupContentDiv = window.document.createElement('div'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,95 @@ | |||
| 1 | + # Nginx | ||
| 2 | + | ||
| 3 | + ## 安装 & 权限 | ||
| 4 | + > Nginx最常见的问题是安全权限问题 | ||
| 5 | + | ||
| 6 | + 1. 安装指南 | ||
| 7 | + ``` sh | ||
| 8 | + yum install epel-release -y | ||
| 9 | + yum install nginx -y | ||
| 10 | + ``` | ||
| 11 | + 2. 配置规则 /etc/nginx/nginx.conf | ||
| 12 | + ``` conf | ||
| 13 | + user root; # 用户建议改成root | ||
| 14 | + server { | ||
| 15 | + listen 8086; | ||
| 16 | + | ||
| 17 | + root /opt/webclient/site; # 指定位置,关键点1 | ||
| 18 | + index index.html # 指定入口得index.html | ||
| 19 | + } | ||
| 20 | + ``` | ||
| 21 | + 3. 修改指定位置权限,由于关键点1使用的是自定义的位置 /opt/webclient/site,因此需要修改系统权限,详情请看[Nginx-SELinux](https://goodmemory.cc/selinux%E7%9B%B8%E5%85%B3%E7%9A%84permission-denied%E9%97%AE%E9%A2%98/) | ||
| 22 | + ``` sh | ||
| 23 | + chcon -R -u system_u /opt/webclient/site/ | ||
| 24 | + chcon -R -t usr_t /opt/webclient/site/ | ||
| 25 | + ``` | ||
| 26 | + | ||
| 27 | + ## Https / Http的处理方式 | ||
| 28 | + | ||
| 29 | + ``` conf | ||
| 30 | + #user nobody; | ||
| 31 | + worker_processes 1; | ||
| 32 | + | ||
| 33 | + #error_log logs/error.log; | ||
| 34 | + #error_log logs/error.log notice; | ||
| 35 | + #error_log logs/error.log info; | ||
| 36 | + | ||
| 37 | + #pid logs/nginx.pid; | ||
| 38 | + | ||
| 39 | + events { | ||
| 40 | + worker_connections 1024; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + http { | ||
| 44 | + include mime.types; | ||
| 45 | + default_type application/octet-stream; | ||
| 46 | + | ||
| 47 | + #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
| 48 | + # '$status $body_bytes_sent "$http_referer" ' | ||
| 49 | + # '"$http_user_agent" "$http_x_forwarded_for"'; | ||
| 50 | + | ||
| 51 | + #access_log logs/access.log main; | ||
| 52 | + | ||
| 53 | + sendfile on; | ||
| 54 | + #tcp_nopush on; | ||
| 55 | + | ||
| 56 | + #keepalive_timeout 0; | ||
| 57 | + keepalive_timeout 65; | ||
| 58 | + | ||
| 59 | + #gzip on; | ||
| 60 | + | ||
| 61 | + server { | ||
| 62 | + listen 6163; | ||
| 63 | + server_name develop.smaryun.com; | ||
| 64 | + root html; | ||
| 65 | + index index.html index.htm; | ||
| 66 | + location / { | ||
| 67 | + #下面的改成自己tomcat项目的地址 9007必须是内部非对外开放的端口 可以再igserver里面修改 | ||
| 68 | + proxy_pass http://127.0.0.1:9007; | ||
| 69 | + } | ||
| 70 | + } | ||
| 71 | + server { | ||
| 72 | + listen 443 ssl; | ||
| 73 | + server_name develop.smaryun.com; | ||
| 74 | + | ||
| 75 | + ssl_certificate cert/develop.pem; | ||
| 76 | + ssl_certificate_key cert/develop.key; | ||
| 77 | + | ||
| 78 | + # ssl_session_cache shared:SSL:1m; | ||
| 79 | + # ssl_session_timeout 5m; | ||
| 80 | + | ||
| 81 | + # ssl_ciphers HIGH:!aNULL:!MD5; | ||
| 82 | + # ssl_prefer_server_ciphers on; | ||
| 83 | + | ||
| 84 | + location / { | ||
| 85 | + #下面的改成自己tomcat项目的地址 9007必须是内部非对外开放的端口 可以再igserver里面修改 | ||
| 86 | + proxy_pass http://127.0.0.1:9007; | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + # location / { | ||
| 90 | + # root html; | ||
| 91 | + # index index.html index.htm; | ||
| 92 | + # } | ||
| 93 | + } | ||
| 94 | + } | ||
| 95 | + ``` | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments