11761176 <span class =" hint" >The domain name for your deployment</span >
11771177 </div >
11781178
1179- <div class =" form-group" >
1180- <label >Container Port</label >
1181- <input
1182- v-model.number =" domainSettings.containerPort"
1183- type =" number"
1184- placeholder =" 80"
1185- class =" form-input"
1186- />
1187- <span class =" hint" >The port your application listens on</span >
1179+ <div class =" form-row" >
1180+ <div class =" form-group" >
1181+ <label >Service</label >
1182+ <select v-model =" domainSettings.service" class =" form-select" >
1183+ <option value =" " >Default ({{ route.params.name }})</option >
1184+ <option v-for =" svc in services" :key =" svc.name" :value =" svc.name" >
1185+ {{ svc.name }}
1186+ </option >
1187+ </select >
1188+ </div >
1189+
1190+ <div class =" form-group" >
1191+ <label >Container Port</label >
1192+ <input
1193+ v-model.number =" domainSettings.containerPort"
1194+ type =" number"
1195+ placeholder =" 80"
1196+ class =" form-input"
1197+ min =" 1"
1198+ max =" 65535"
1199+ />
1200+ </div >
11881201 </div >
11891202
11901203 <div class =" form-group" >
@@ -1592,6 +1605,7 @@ const savingDomainSettings = ref(false);
15921605const domainSettings = ref ({
15931606 expose: false ,
15941607 domain: " " ,
1608+ service: " " ,
15951609 containerPort: 80 ,
15961610 sslEnabled: false ,
15971611 autoCert: false ,
@@ -2263,6 +2277,7 @@ const openDomainSettings = () => {
22632277 domainSettings .value = {
22642278 expose: metadata .networking ?.expose || false ,
22652279 domain: metadata .networking ?.domain || " " ,
2280+ service: metadata .networking ?.service || " " ,
22662281 containerPort: metadata .networking ?.container_port || 80 ,
22672282 sslEnabled: metadata .ssl ?.enabled || false ,
22682283 autoCert: metadata .ssl ?.auto_cert || false ,
@@ -2271,6 +2286,7 @@ const openDomainSettings = () => {
22712286 domainSettings .value = {
22722287 expose: proxyStatus .value ?.exposed || false ,
22732288 domain: proxyStatus .value ?.domain || " " ,
2289+ service: " " ,
22742290 containerPort: 80 ,
22752291 sslEnabled: proxyStatus .value ?.ssl_enabled || false ,
22762292 autoCert: false ,
@@ -2286,6 +2302,7 @@ const saveDomainSettings = async () => {
22862302 networking: {
22872303 expose: domainSettings .value .expose ,
22882304 domain: domainSettings .value .domain ,
2305+ service: domainSettings .value .service ,
22892306 container_port: domainSettings .value .containerPort ,
22902307 protocol: " http" ,
22912308 proxy_type: " http" ,
0 commit comments