StuRa Diskussion:Server/Ghost

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen

Ghost meets FreeBSD

Installation einer Instanz zum Testen von Ghost als Container für TurnKey Linux auf Proxmox

Vorarbeit
  • Erstellen vom Eintrag für DNS
    • Eintrag A für test.ghost.htw.stura-dresden.de auf 141.56.51.194
  • Verbinden mit dem Proxmox (Cluster)
  • Herunterladen von der Vorlage (für Ghost) für TurnKey für Proxmox
Create CT
General
Node
Hostname
dev ghost
Unprivileged container
[X]
Password
8
Template
Storage
cephfs
Type
rdb
Template
debian-10-turnkey-ghost_16.0-1_amd64.tar.gz
Root Disk
Storage
storage
Disk size (GiB)
16
CPU
Cores
1
Memory
Memory (MiB)
1024
Swap (MiB)
1024
Network
Bridge
vmbr1
IPv4
Static
IPv4/CIDR
141.56.51.194/24
Gateway (IPv4)
141.56.51.254
DNS
DNS domain
DNS servers
141.56.1.1
Confirm
Start after created
[ ]
Finish

Erstellt! (Nicht gestartet!)

Container (linke Spalte) auswählen

Options
Features
Nesting
[X]

Starten!

Verbinden per ssh

ssh root@test.ghost.htw.stura-dresden.de
Ghost Password
8
Confirm
8
Ghost Email
ghost@stura
Ghost Account Name
Test StuRa HTW Dresden
Ghost Domain
htps://test.ghost.htw.stura-dresden.de
Initialize Hub services
Skip
System Notifications and Critical Security Alerts
Skip
Security updates
Install

┌──────────────DEV-GHOST appliance services────────────────┐
│                                                          │
│ Ghost: https://141.56.51.194                             │
│ Blog Admin: https://141.56.51.194/ghost                  │
│ Web shell: https://141.56.51.194:12320                   │
│ Webmin: https://141.56.51.194:12321                      │
│ SSH/SFTP: root@141.56.51.194 (port 22)                   │
│                                                          │
│ TKLBAM (Backup and Migration): NOT INITIALIZED           │
│                                                          │
│                                                          │
│                                                          │
│                                                          │
│                                                          │
│                                                          │
│ TurnKey Backups and Cloud Deployment                     │
│ https://hub.turnkeylinux.org                             │
├──────────────────────────────────────────────────────────┤
│ <Advanced Menu>                                          │
└──────────────────────────────────────────────────────────┘
DEV-GHOST appliance services
Advanced Menu
Advanced Menu
Reboot
Select
(Confirm)
Yes

Verbinden per ssh

ssh root@test.ghost.htw.stura-dresden.de
confconsole
Lets encrypt
Select
Get certificate
Select
DNS must be configured before …
Do you wish to continue?
Yes
Before getting als Lets's Encrypt certificate …
Do you agree to the Lets's Encrypt Terms of Service?
Yes
Certificate Certificate Wildcard
Donmain 1
test.ghost.htw.stura-dresden.de
Donmain 2
Apply
This will override…
. Continue?
Yes
Cert auto renew
Select
Automatic…
disabled
Toggle
Automatic…
enabled
Ok
Lets encrypt
Back
Region config
Select
Tzdata
Select
Please select …
Geographic area
Europe
Please select …
Time zone
Berlin
Region config
Back
Quit
Select
(Confirm)
Yes

apt update
apt upgrade


Datacenter (cluster)
HA
Resources
Add
VM
113
Group
HA_cluster
Add

Problem beim Upload von Theme (betrifft auch z.B. Bilder, Videos, etc.)
Lösung
Verbinden per SSH
ssh root@test.ghost.htw.stura-dresden.de
Via Nano die Konfigurationsdatei von Nginx öffnen
nano /etc/nginx/nginx.conf
In der Sektion http {
client_max_body_size 5M;
einfügen. (Zu finden unter Basic Settings)
Im Anschluss speichern und mit
systemctl reload nginx
den Service in der Kommandozeile neu starten.
Jetzt lassen sich Dateien bis zu einer Maximalgröße von 5MB uploaden, wobei der Wert in der nginx.conf variabel anzupassen ist.