Add database-only option of storing iiip-server

This commit is contained in:
Tom Wiesing 2023-11-11 09:59:16 +01:00
parent 733aa237d1
commit 89317662de
No known key found for this signature in database
14 changed files with 37 additions and 10 deletions

View file

@ -8,6 +8,7 @@ const slug = document.getElementById('slug') as HTMLInputElement
const php = document.getElementById('php') as HTMLSelectElement
const opcacheDevelopment = document.getElementById('opcacheDevelopment') as HTMLInputElement
const contentSecurityPolicy = document.getElementById('contentsecuritypolicy') as HTMLInputElement
const iipserver = document.getElementById('iipserver') as HTMLInputElement
// add an event handler to open the modal form!
system.addEventListener('submit', (evt) => {
@ -19,7 +20,7 @@ system.addEventListener('submit', (evt) => {
Provision({
Slug: slug.value,
Flavor: flavor,
System: { PHP: php.value, OpCacheDevelopment: opcacheDevelopment.checked, ContentSecurityPolicy: contentSecurityPolicy.value }
System: { PHP: php.value, IIPServer: iipserver.checked, OpCacheDevelopment: opcacheDevelopment.checked, ContentSecurityPolicy: contentSecurityPolicy.value }
})
.then(slug => {
location.href = '/admin/instance/' + slug

View file

@ -8,12 +8,13 @@ const slug = document.getElementById('slug') as HTMLInputElement
const php = document.getElementById('php') as HTMLSelectElement
const opcacheDevelopment = document.getElementById('opcacheDevelopment') as HTMLInputElement
const contentSecurityPolicy = document.getElementById('contentsecuritypolicy') as HTMLInputElement
const iipserver = document.getElementById('iipserver') as HTMLInputElement
// add an event handler to open the modal form!
system.addEventListener('submit', (evt) => {
evt.preventDefault()
Rebuild(slug.value, { PHP: php.value, OpCacheDevelopment: opcacheDevelopment.checked, ContentSecurityPolicy: contentSecurityPolicy.value })
Rebuild(slug.value, { PHP: php.value, IIPServer: iipserver.checked, OpCacheDevelopment: opcacheDevelopment.checked, ContentSecurityPolicy: contentSecurityPolicy.value })
.then(slug => {
location.href = '/admin/instance/' + slug
})

View file

@ -12,6 +12,7 @@ interface ProvisionFlags {
interface System {
PHP: string
IIPServer: boolean
OpCacheDevelopment: boolean
ContentSecurityPolicy: string
}