doenv's Introduction
doenv's People
doenv's Issues
自动部署完成或失败时发送通知
支持 SSL 证书与 Grafana 反向代理
申请 SSL 证书
Nginx 配置
-
安装 Nginx 及相关操作
# 安装 Nginx sudo apt install ngix # 查看 Nginx 版本 nginx -v # 查看 Nginx 安装目录 which nginx # 查看 Nginx 配置文件的路径 sudo nginx -t # 更详细安装信息 systemctl status nginx # 启动 Nginx sudo systemctl start nginx # 停止 Nginx 服务 sudo systemctl stop nginx # 重启服务 sudo systemctl reload nginx
-
下载证书&安装
nginx 端口转发(反向代理)配置参考:Run grafana behind a proxysudo vim /etc/nginx/sites-available/default
# This is required to proxy Grafana Live WebSocket connections. map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream grafana { server localhost:3000; } server { # SSL 默认访问端口号为 443 listen 443 ssl; # 请填写绑定证书的域名 server_name example.com; # 请填写证书文件的相对路径或绝对路径 ssl_certificate /path/to/your_certificate.crt; # 请填写私钥文件的相对路径或绝对路径 ssl_certificate_key /path/to/your_certificate_key.key; #ssl_session_timeout 5m; # 请按照以下协议配置 ssl_protocols TLSv1.2 TLSv1.3; # 请按照以下套件配置,配置加密套件,写法遵循 openssl 标准。 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; # Grafana 反向代理 location / { proxy_set_header Host $host; proxy_pass http://grafana; rewrite ^/grafana/(.*) /$1 break; } location /grafana/ { proxy_set_header Host $host; proxy_pass http://grafana; rewrite ^/grafana/(.*) /$1 break; } # Proxy Grafana Live WebSocket connections. location /grafana/api/live/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; proxy_pass http://grafana; } }
配置防火墙
腾讯云后台只放行 443 端口,其他端口不对外访问:
Create my self-hosted runners
生产环境忽略 testcontainers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.