add ssl options to web

This commit is contained in:
nikk gitanes
2023-11-13 10:53:28 +03:00
parent b72c66d433
commit ffdd20a019
15 changed files with 115 additions and 43 deletions

View File

@@ -91,6 +91,7 @@ export default function AboutDialog() {
<LinkComponent name='FaintGhost' link='https://github.com/FaintGhost' />
<LinkComponent name='lieranderl' link='https://github.com/lieranderl' />
<LinkComponent name='cocool97' link='https://github.com/cocool97' />
<LinkComponent name='shadeov' link='https://github.com/shadeov' />
</div>
</Section>
</div>

View File

@@ -34,6 +34,9 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
UploadRateLimit,
ConnectionsLimit,
PeersListenPort,
SslPort,
SslCert,
SslKey,
} = settings || {}
return (
@@ -214,6 +217,42 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
<option value={3}>{t('SettingsDialog.ReplaceRetrackers')}</option>
</Select>
<br />
<TextField
onChange={inputForm}
margin='normal'
id='SslPort'
label={t('SettingsDialog.SslPort')}
helperText={t('SettingsDialog.SslPortHint')}
value={SslPort}
type='number'
variant='outlined'
fullWidth
/>
<br />
<TextField
onChange={inputForm}
margin='normal'
id='SslCert'
label={t('SettingsDialog.SslCert')}
helperText={t('SettingsDialog.SslCertHint')}
value={SslCert}
type='url'
variant='outlined'
fullWidth
/>
<br />
<TextField
onChange={inputForm}
margin='normal'
id='SslKey'
label={t('SettingsDialog.SslKey')}
helperText={t('SettingsDialog.SslKeyHint')}
value={SslKey}
type='url'
variant='outlined'
fullWidth
/>
<br />
</SecondarySettingsContent>
)
}

View File

@@ -23,4 +23,7 @@ export default {
UploadRateLimit: 0,
ConnectionsLimit: 25,
PeersListenPort: 0,
SslPort: 0,
SslCert: '',
SslKey: '',
}