Brc's blog
首页
前端
后端
运维
  • 工作笔记
  • 分类
  • 标签
  • 归档
关于

Brc

努力中
首页
前端
后端
运维
  • 工作笔记
  • 分类
  • 标签
  • 归档
关于
  • 工具安装

  • AWS

  • EKS

  • 其他

    • certbot
    • 先删除运行时间长的pod
    • jenkins
    • JFrogArtifactory
    • AWS防ddos的架构
    • 七牛云数据迁移
    • Ubuntu安装gnome配置rdp
    • ElastiCacheForRedis启用密码
  • AWS创建EKS集群
  • 谷歌云创建GKE集群
  • 工作笔记
  • 其他
Brc
2023-06-11

certbot

Ensure that your version of snapd is up to date


sudo snap install core; sudo snap refresh core

1
2
3

Remove certbot-auto and any Certbot OS packages

sudo apt-get remove certbot
1

Install Certbot

sudo snap install --classic certbot
1

Prepare the Certbot command

sudo ln -s /snap/bin/certbot /usr/bin/certbot
1

Either get and install your certificates


手动在nginx中加入

server {
    server_name jenkins.birenchong.cn;

    location / {
        proxy_set_header X_Real_IP $remote_addr;
        proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:10240;
        proxy_redirect off;
    }
}

执行
sudo certbot --nginx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Test automatic renewal

sudo certbot renew --dry-run


The command to renew certbot is installed in one of the following locations:

/etc/crontab/
/etc/cron.*/*
systemctl list-timers

1
2
3
4
5
6
7
8
9
#certbot
Last Updated: 2023/11/08, 14:45:54
问题
先删除运行时间长的pod

← 问题 先删除运行时间长的pod→

最近更新
01
谷歌云创建GKE集群
07-26
02
ElastiCacheForRedis启用密码
07-26
03
upload-to-gcs
06-29
更多文章>
Theme by Vdoing | Copyright © 2021-2024 Brc | MIT License | 浙ICP备19031881号-4
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式