- {additionalPorts.map((port, index) => (
-
-
-
- {
- const newPorts = [...additionalPorts];
-
- if (newPorts[index]) {
- newPorts[index].targetPort = Number.parseInt(
- e.target.value,
- );
- }
-
- setAdditionalPorts(newPorts);
- }}
- className="w-full rounded border p-2"
- />
-
-
-
- {
- const newPorts = [...additionalPorts];
- if (newPorts[index]) {
- newPorts[index].publishedPort = Number.parseInt(
- e.target.value,
- );
- }
- setAdditionalPorts(newPorts);
- }}
- className="w-full rounded border p-2"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
>
);
};
+
+export default ManageTraefikPorts;
diff --git a/apps/dokploy/public/locales/en/settings.json b/apps/dokploy/public/locales/en/settings.json
index 1ce546929..39af41783 100644
--- a/apps/dokploy/public/locales/en/settings.json
+++ b/apps/dokploy/public/locales/en/settings.json
@@ -17,8 +17,8 @@
"settings.server.webServer.updateServerIp": "Update Server IP",
"settings.server.webServer.server.label": "Server",
"settings.server.webServer.traefik.label": "Traefik",
- "settings.server.webServer.traefik.modifyEnv": "Modify Env",
- "settings.server.webServer.traefik.managePorts": "Additional Ports",
+ "settings.server.webServer.traefik.modifyEnv": "Modify Environment",
+ "settings.server.webServer.traefik.managePorts": "Additional Port Mappings",
"settings.server.webServer.traefik.managePortsDescription": "Add or remove additional ports for Traefik",
"settings.server.webServer.traefik.targetPort": "Target Port",
"settings.server.webServer.traefik.publishedPort": "Published Port",