Merge pull request #1444 from hetlelid/patch-1

Update page.tsx
This commit is contained in:
Owen Schwartz
2025-09-11 10:24:55 -07:00
committed by GitHub

View File

@@ -315,6 +315,8 @@ export default function Page() {
}
async function onSubmit() {
setShowSnippets(true);
router.refresh();
setCreateLoading(true);
const baseData = baseForm.getValues();
@@ -1420,6 +1422,9 @@ export default function Page() {
<h3 className="text-lg font-semibold">
{t("resourceAddEntrypoints")}
</h3>
<p className="text-sm text-muted-foreground">
(Edit file: config/traefik/traefik_config.yml)
</p>
<CopyTextBox
text={`entryPoints:
${tcpUdpForm.getValues("protocol")}-${tcpUdpForm.getValues("proxyPort")}:
@@ -1432,6 +1437,9 @@ export default function Page() {
<h3 className="text-lg font-semibold">
{t("resourceExposePorts")}
</h3>
<p className="text-sm text-muted-foreground">
(Edit file: docker-compose.yml)
</p>
<CopyTextBox
text={`ports:
- ${tcpUdpForm.getValues("proxyPort")}:${tcpUdpForm.getValues("proxyPort")}${tcpUdpForm.getValues("protocol") === "tcp" ? "" : "/" + tcpUdpForm.getValues("protocol")}`}