feat(Self-hosting NetBird script):support custom service port and DNS… #1464
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… challenge
Adding port variable support custom service port;
Adding the CUSTOM_INITIAL_FILES variable allows you to change the configuration files to allow DNS challenge configuration or manual certificate management
Most of the people who encountered this problem were from China, so I added the description in Chinese
I didn't test the conditions for port 80 and 443 deployments, so I didn't test this case
The following variables are added(增加了以下变量)
Custom ports(自定义端口)
Customize the initial configuration file(定制初始配置文件)
export CUSTOM_INITIAL_FILES=true;
Certificate Settings when customizing ports(自定义端口时证书的设置)
两种设置方式:DNS challenge、Manage certificates manually(手动管理证书)
DNS challenge
Automatically sign and renew certificates with caddy DNS challenge(通过 caddy DNS challenge自动签发、续签证书)
Take DNSPod as an example(以DNSPod为例)
Obtain or manually build caddy-dnspod. Modify the caddy image in docker-compose.yml.
(获取或手动构建caddy-dnspod。 修改docker-compose.yml中caddy镜像。)
Modify Caddyfile to add DNS challenge configuration
(修改Caddyfile,增加DNS challenge配置)
Manage certificates manually(手动管理证书)
Manage the certificates manually, and replace them manually when they expire
手动管理证书,到期需要手动替换证书
Get the certificate and upload it to the certs folder in your installation directory.(获取证书,将证书上传到安装目录下certs文件夹中。)
Modify the caddy configuration in docker-compose.yml to mount the certificate file(docker-compose.yml中caddy配置,挂载证书文件)
Modify Caddyfile to add the certificate configuration(修改Caddyfile,增加证书配置)
Issue ticket number and link
discussions
https://github.com/netbirdio/netbird/discussions/1406
issues
#1408
#1267
Checklist