Skip to content

[Feature] Domain name should not be limited to FQDN like example.com but hostname #11304

@hyprocritor

Description

@hyprocritor

1Panel Version

2.0.15

Please describe your needs or suggestions for improvements

1Panel appears to enforce the use of Fully Qualified Domain Name (FQDN) format when adding a new website domain.

While this validation is appropriate for website on Internet, it creates friction when deploying applications within an Internal Network environment( such as corp or home network). In these environments, using a Single Hostname (or "Short Name") without a TLD is a common and legitimate practice for addressing internal services.

For example, common internal hostnames that might currently be rejected by 1Panel include:


1Panel 在添加网站的时候会强制要求使用FQDN格式的域名,比如example.com这种形式。

但是在很多内网环境下,不实用TLD这种形式也很多,比如单纯的 go,这种形式的域名不仅合法,而且在内网还很常用。

现在导致网站这个功能必须手动修改配置文件才可以。

Please describe the solution you suggest

It would be nice if we have warning box ONLY for non-FQDN instead of rejection.


可以考虑使用单个提醒框来提醒用户,而不是直接阻止网站的创建。

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions