Add database-only option of storing iiip-server
This commit is contained in:
parent
733aa237d1
commit
89317662de
14 changed files with 37 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ interface ProvisionFlags {
|
|||
|
||||
interface System {
|
||||
PHP: string
|
||||
IIPServer: boolean
|
||||
OpCacheDevelopment: boolean
|
||||
ContentSecurityPolicy: string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue