Adding ghost and fixing compose .env setup.
This commit is contained in:
@@ -36,7 +36,8 @@ create table user_selected_apps(
|
||||
instance_id integer not null references instances on delete cascade,
|
||||
wg_easy_version varchar(100),
|
||||
nextcloud_version varchar(100),
|
||||
log_viewer_version varchar(100)
|
||||
log_viewer_version varchar(100),
|
||||
ghost_version varchar(100)
|
||||
);
|
||||
create unique index user_selected_apps_user_id_instance_id_idx on user_selected_apps (user_id, instance_id);
|
||||
|
||||
|
||||
@@ -226,6 +226,7 @@ returning users.user_id;"
|
||||
(define *user-selected-apps-column-map*
|
||||
'((wg-easy . "wg_easy_version")
|
||||
(nextcloud . "nextcloud_version")
|
||||
(ghost . "ghost_version")
|
||||
(log-viewer . "log_viewer_version")))
|
||||
|
||||
(define *user-selected-apps-reverse-column-map*
|
||||
|
||||
@@ -555,6 +555,12 @@ h1, h2, h3, h4, h5, h6 {
|
||||
'in-progress)
|
||||
(else 'queued)))
|
||||
`((generate-configs . ,(search "terraform apply" "NASSELLA_CONFIG: start"))
|
||||
;; TODO this didn't seem to work right when upgrading the flatcar image
|
||||
;; log: [0m[1mdigitalocean_custom_image.flatcar: Creating...[0m[0m
|
||||
;; [0m[1mdigitalocean_custom_image.flatcar: Still creating... [00m10s elapsed][0m[0m
|
||||
;; [0m[1mdigitalocean_custom_image.flatcar: Still creating... [00m20s elapsed][0m[0m
|
||||
;; [0m[1mdigitalocean_custom_image.flatcar: Still creating... [00m30s elapsed][0m[0m
|
||||
;; [0m[1mdigitalocean_custom_image.flatcar: Still creating... [00m40s elapsed][0m[0m
|
||||
(custom-image . ,(search "custom_image.flatcar: Modifications complete" "custom_image.flatcar: Modifying"))
|
||||
(machine-create . ,(search "droplet.machine: Creation complete" "droplet.machine: Creating..."))
|
||||
(machine-destroy . ,(search "droplet.machine: Destruction complete"
|
||||
@@ -678,6 +684,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
(@ (title "Selected Apps"))
|
||||
(Field (@ (name "wg-easy") (type "checkbox") (label ("WG Easy")) (checked ,(member 'wg-easy (alist-ref 'selected-apps results)))))
|
||||
(Field (@ (name "nextcloud") (type "checkbox") (label ("NextCloud")) (checked ,(member 'nextcloud (alist-ref 'selected-apps results)))))
|
||||
(Field (@ (name "ghost") (type "checkbox") (label ("Ghost")) (checked ,(member 'ghost (alist-ref 'selected-apps results)))))
|
||||
(Field (@ (name "log-viewer") (type "checkbox") (label ("Log Viewer")) (checked #t) (disabled "disabled"))))
|
||||
(Form-Nav (@ (back-to ,(conc "/config/wizard/services-success/" instance-id))))))))))
|
||||
|
||||
@@ -691,7 +698,8 @@ h1, h2, h3, h4, h5, h6 {
|
||||
(session-user-id)
|
||||
instance-id
|
||||
`((wg-easy . ,(or (and (alist-ref 'wg-easy (current-params)) "0.0") (sql-null)))
|
||||
(nextcloud . ,(or (and (alist-ref 'nextcloud (current-params)) "0.0") (sql-null)))))
|
||||
(nextcloud . ,(or (and (alist-ref 'nextcloud (current-params)) "0.0") (sql-null)))
|
||||
(ghost . ,(or (and (alist-ref 'ghost (current-params)) "0.0") (sql-null)))))
|
||||
(update-root-domain db
|
||||
(session-user-id)
|
||||
instance-id
|
||||
@@ -719,6 +727,11 @@ h1, h2, h3, h4, h5, h6 {
|
||||
(form
|
||||
(@ (action ,(conc "/config/wizard/apps2-submit/" instance-id)) (method POST))
|
||||
(VStack
|
||||
,@(if (member 'ghost selected-apps)
|
||||
`((Fieldset
|
||||
(@ (title "Ghost"))
|
||||
(Field (@ (name "ghost-subdomain") (label ("Subdomain")) (value ,(alist-ref 'subdomain (alist-ref 'ghost app-config eq? '()) eq? "ghost"))))))
|
||||
'())
|
||||
,@(if (member 'wg-easy selected-apps)
|
||||
`((Fieldset
|
||||
(@ (title "WG-Easy"))
|
||||
@@ -752,7 +765,8 @@ h1, h2, h3, h4, h5, h6 {
|
||||
db
|
||||
(session-user-id)
|
||||
instance-id
|
||||
`((wg-easy . ((subdomain . ,(alist-ref 'wg-easy-subdomain (current-params)))))
|
||||
`((ghost . ((subdomain . ,(alist-ref 'ghost-subdomain (current-params)))))
|
||||
(wg-easy . ((subdomain . ,(alist-ref 'wg-easy-subdomain (current-params)))))
|
||||
(nextcloud . ((subdomain . ,(alist-ref 'nextcloud-subdomain (current-params)))
|
||||
(admin-user . ,(alist-ref 'nextcloud-admin-user (current-params)))
|
||||
(admin-password . ,(alist-ref 'nextcloud-admin-password (current-params)))))
|
||||
@@ -927,7 +941,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
("cloudflare_account_id" . ,(alist-ref 'cloudflare-account-id service-config))
|
||||
("cluster_name" . "mycluster")
|
||||
("datacenter" . ,(alist-ref 'digitalocean-region service-config))
|
||||
("flatcar_stable_version" . "4230.2.3")))
|
||||
("flatcar_stable_version" . "4459.2.1")))
|
||||
(display "ssh_keys=[\"") (display (with-input-from-file (string-append dir "/config/ssh-keys") read-string)) (print "\"]"))))
|
||||
(let* ((instance-id (alist-ref "id" (current-params) equal?))
|
||||
(user-id (session-user-id))
|
||||
|
||||
Reference in New Issue
Block a user