1 Star 0 Fork 0

空月之羽/nautobot-docker-compose

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
config
docs
img
create_ssl_cert.md
ldap.md
plugins.md
plugin_example
.gitignore
.yamllint.yml
Dockerfile-LDAP
README.md
docker-compose.ldap.yml
docker-compose.yml
local.env.example
renovate.json
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
create_ssl_cert.md 2.02 KB
一键复制 编辑 原始数据 按行查看 历史

SSL Self Signed Certificate

By default the Docker image comes with a self signed certificate that is valid for one year. To provide a different certificate, the file names names nautobot.key and nautobot.crt within the /opt/nautobot/ directory is required. With these files present on the host running the Docker compose, use the following as volume mounts into the nautobot container.

  nautobot:
    image: "networktocode/nautobot:latest"
    env_file:
      - "local.env"
    ports:
      - "8443:8443"
      - "8080:8080"
    restart: "unless-stopped"
    volumes:
      - path/to/your/nautobot.key /opt/nautobot/nautobot.key
      - path/to/your/nautobot.crt /opt/nautobot/nautobot.crt

Make Own Cert Options (Not Required)

OpenSSL

If you do not have your own self signed certificate, you may generate them by using OpenSSL.

Install OpenSSL

OpenSSL is included with many UNIX operating systems, but may need to be installed on your system first.

Check to see if OpenSSL is installed on your system

user@ntc# openssl version
LibreSSL 2.8.3

If you do not have OpenSSL installed, please follow the installation guidelines.

Example Self Sign Cert

Once OpenSSL is installed, run the following command to generate the certificates.

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./certs/nautobot.key -out ./certs/nautobot.crt

You will be prompted with information to fill out for your certificate.

Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New York
Locality Name (eg, city) []:New York City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Bouncy Castles, Inc.
Organizational Unit Name (eg, section) []:Ministry of Water Slides
Common Name (e.g. server FQDN or YOUR name) []:server_IP_address
Email Address []:admin@your_domain.com

Finally, ensure your newly generated certificates are in the correct location.

user@ntc# ls ./certs/
nautobot.crt    nautobot.key
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/skyfallen/nautobot-docker-compose.git
git@gitee.com:skyfallen/nautobot-docker-compose.git
skyfallen
nautobot-docker-compose
nautobot-docker-compose
main

搜索帮助