diff --git a/docs/4.0/docs/self-hosting/sealos/QA.md b/docs/4.0/docs/self-hosting/sealos/QA.md index d150c6595..b72d444e7 100644 --- a/docs/4.0/docs/self-hosting/sealos/QA.md +++ b/docs/4.0/docs/self-hosting/sealos/QA.md @@ -87,4 +87,18 @@ Certificates are crucial for the security of your Sealos cluster. Follow these s Changing a domain name in a Sealos cluster is complex, often requiring adjustments in multiple components and services. We do not currently provide a comprehensive guide for this process in our documentation. However, future plans include the release of a Sealos Cluster Management Panel for easier domain name and certificate replacement. -It's important to note that domain name changes demand deep knowledge of the cluster's network setup and may involve intricate DNS settings and service discovery. We recommend undertaking such changes only if you have the requisite expertise or with guidance from a professional. \ No newline at end of file +It's important to note that domain name changes demand deep knowledge of the cluster's network setup and may involve intricate DNS settings and service discovery. We recommend undertaking such changes only if you have the requisite expertise or with guidance from a professional. + +### user registration switch + +disabled user register: + +```shell +kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"false"}]}]}}}}' +``` + +enabled user register: + +```shell +kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"true"}]}]}}}}' +``` \ No newline at end of file diff --git a/docs/4.0/i18n/zh-Hans/self-hosting/sealos/QA.md b/docs/4.0/i18n/zh-Hans/self-hosting/sealos/QA.md index d694b1347..f43c758cb 100644 --- a/docs/4.0/i18n/zh-Hans/self-hosting/sealos/QA.md +++ b/docs/4.0/i18n/zh-Hans/self-hosting/sealos/QA.md @@ -91,4 +91,18 @@ $ echo 1 > /proc/sys/net/ipv4/ip_forward Sealos 集群管理面板,该面板将提供更加简便的方法来替换集群域名和证书。 请注意,域名更换通常需要对集群的网络配置进行深入了解,并且可能涉及到 DNS -设置、服务发现等多个方面。因此,建议在执行此类操作时,确保您具备相应的技术知识或咨询专业人士的帮助。 \ No newline at end of file +设置、服务发现等多个方面。因此,建议在执行此类操作时,确保您具备相应的技术知识或咨询专业人士的帮助。 + +### 用户注册开关 + +关闭用户注册: + +```shell +kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"false"}]}]}}}}' +``` + +开启用户注册: + +```shell +kubectl -n sealos patch deployment desktop-frontend -p '{"spec":{"template":{"spec":{"containers":[{"name":"desktop-frontend","env":[{"name":"SIGN_UP_ENABLED","value":"true"}]}]}}}}' +``` \ No newline at end of file