mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
allow 80 or 443 raw resources
This commit is contained in:
@@ -46,17 +46,17 @@ const updateResourceBodySchema = z
|
||||
},
|
||||
{ message: "Cannot update proxyPort" }
|
||||
)
|
||||
.refine(
|
||||
(data) => {
|
||||
if (data.proxyPort === 443 || data.proxyPort === 80) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
{
|
||||
message: "Port 80 and 443 are reserved for http and https resources"
|
||||
}
|
||||
)
|
||||
// .refine(
|
||||
// (data) => {
|
||||
// if (data.proxyPort === 443 || data.proxyPort === 80) {
|
||||
// return false;
|
||||
// }
|
||||
// return true;
|
||||
// },
|
||||
// {
|
||||
// message: "Port 80 and 443 are reserved for http and https resources"
|
||||
// }
|
||||
// )
|
||||
.refine(
|
||||
(data) => {
|
||||
if (!config.getRawConfig().flags?.allow_base_domain_resources) {
|
||||
|
||||
Reference in New Issue
Block a user