mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -485,7 +485,8 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Internal Path</FormLabel>
|
<FormLabel>Internal Path</FormLabel>
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
The path where your application expects to receive requests internally (defaults to "/")
|
The path where your application expects to receive
|
||||||
|
requests internally (defaults to "/")
|
||||||
</FormDescription>
|
</FormDescription>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder={"/"} {...field} />
|
<Input placeholder={"/"} {...field} />
|
||||||
@@ -504,7 +505,8 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
|
|||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
<FormLabel>Strip Path</FormLabel>
|
<FormLabel>Strip Path</FormLabel>
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
Remove the external path from the request before forwarding to the application
|
Remove the external path from the request before
|
||||||
|
forwarding to the application
|
||||||
</FormDescription>
|
</FormDescription>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -112,7 +112,8 @@ export const createRouterConfig = async (
|
|||||||
const { appName, redirects, security } = app;
|
const { appName, redirects, security } = app;
|
||||||
const { certificateType } = domain;
|
const { certificateType } = domain;
|
||||||
|
|
||||||
const { host, path, https, uniqueConfigKey, internalPath, stripPath } = domain;
|
const { host, path, https, uniqueConfigKey, internalPath, stripPath } =
|
||||||
|
domain;
|
||||||
const routerConfig: HttpRouter = {
|
const routerConfig: HttpRouter = {
|
||||||
rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`,
|
rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`,
|
||||||
service: `${appName}-service-${uniqueConfigKey}`,
|
service: `${appName}-service-${uniqueConfigKey}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user