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

@ -4,8 +4,9 @@ package models
// It is embedded into the instances struct by gorm.
type System struct {
// NOTE(twiesing): Any changes here should be reflected in instance_{provision,rebuild}.html and remote/api.ts.
PHP string `gorm:"column:php;not null"` // php version to use
OpCacheDevelopment bool `gorm:"column:opcache_devel;not null"` // opcache development
PHP string `gorm:"column:php;not null"` // php version to use
IIPServer bool `gorm:"column:iipimage;not null;default:false"` // should we enable the IIPServer?
OpCacheDevelopment bool `gorm:"column:opcache_devel;not null"` // opcache development
ContentSecurityPolicy string `gorm:"column:csp;not null"` // content security policy for the system
}