Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| infrastruktur:container:sediment [07.11.2021 11:24] – [Wartung] Malte | infrastruktur:container:sediment [11.10.2025 15:49] (aktuell) – [Wartung] Malte | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Sediment ====== | ====== Sediment ====== | ||
| - | |Verantwortung | + | | Verantwortung |
| - | |Container | + | | Container |
| - | |W. Ports | + | | W. Ports | keine |
| - | |OS | + | | OS | Debian |
| - | |Server | + | | Server |
| - | |Zustand | + | | Zustand |
| {{tag> | {{tag> | ||
| Zeile 12: | Zeile 12: | ||
| ===== Services ===== | ===== Services ===== | ||
| - | ^ Serviceübersicht^Version^ | + | ^ Serviceübersicht |
| - | |Sediment| 0.3.4 | | + | | Sediment |
| ====Sediment==== | ====Sediment==== | ||
| Zeile 22: | Zeile 22: | ||
| < | < | ||
| - | apt install build-essential patch ruby-dev | + | apt install build-essential patch zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl |
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | Install GPG keys: | ||
| + | < | ||
| + | gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | ||
| + | </ | ||
| + | |||
| + | Install RVM: | ||
| + | < | ||
| + | \curl -sSL https:// | ||
| + | </ | ||
| + | |||
| + | Install Ruby: | ||
| + | < | ||
| + | rvm install ruby-3.1.4 | ||
| </ | </ | ||
| Zeile 38: | Zeile 55: | ||
| < | < | ||
| - | git clone -4 https:// | + | git clone https:// |
| </ | </ | ||
| Zeile 44: | Zeile 61: | ||
| < | < | ||
| - | bundle | + | bundle |
| - | </ | + | |
| - | + | ||
| - | Create secrets: | + | |
| - | + | ||
| - | < | + | |
| - | EDITOR=vim rails credentials: | + | |
| </ | </ | ||
| Zeile 62: | Zeile 73: | ||
| < | < | ||
| - | yarn install --check-files | ||
| rake assets: | rake assets: | ||
| </ | </ | ||
| - | === Running As IPv6 === | + | === Systemd Service |
| - | Now you can run the server using | + | Create systemd service |
| - | + | ||
| - | < | + | |
| - | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD=' | + | |
| - | </ | + | |
| - | + | ||
| - | Create systemd service | + | |
| < | < | ||
| Zeile 84: | Zeile 88: | ||
| Type=simple | Type=simple | ||
| WorkingDirectory=/ | WorkingDirectory=/ | ||
| - | Environment=RAILS_SERVE_STATIC_FILES=1 | + | Environment=RAILS_ENV=production |
| - | Environment=MAILER_PASSWORD='CHANGEME' | + | Environment=RAILS_SERVE_STATIC_FILES=true |
| - | Environment=MAILER_HOST='[2a01:4f8: | + | Environment=SEDIMENT_OPENID_DISPLAY_NAME='Chaotikum Account' |
| - | Environment=MAILER_PORT='80' | + | Environment=SEDIMENT_OPENID_AUTH_URI='https:// |
| - | ExecStart=/root/sediment/bin/rails s -e production | + | Environment=SEDIMENT_OPENID_TOKEN_URI='https://me.chaotikum.org/auth/realms/ |
| - | Restart=always | + | Environment=SEDIMENT_OPENID_CLIENT_ID=' |
| - | + | Environment=SEDIMENT_OPENID_CLIENT_SECRET=' | |
| - | [Install] | + | Environment=SEDIMENT_OPENID_SCOPE='email profile openid' |
| - | WantedBy=multi-user.target | + | Environment=SEDIMENT_OPENID_LOGOUT_URL='https://me.chaotikum.org/ |
| - | </ | + | Environment=SEDIMENT_OPENID_GROUP_KEY='groups' |
| - | + | Environment=SEDIMENT_OPENID_GROUP_VALUE=' | |
| - | === Running As IPv4 Behind Reverse Proxy On Web === | + | Environment=SECRET_KEY_BASE=********************** |
| - | + | Environment=SMTP_ADDRESS=mail.chaotikum.net | |
| - | Now you can run the server using | + | Environment=SMTP_PORT=587 |
| - | + | Environment=SMTP_USER=sediment | |
| - | < | + | Environment=SMTP_PASSWORD=' |
| - | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD='CHANGEME' | + | Environment=SMTP_AUTHENTICATION=plain |
| - | </code> | + | Environment=SMTP_ENABLE_STARTTLS_AUTO=1 |
| - | + | Environment=MAILER_FROM=sediment@chaotikum.org | |
| - | Create systemd service `/ | + | Environment=MAILER_HOST=sediment.chaotikum.org |
| - | + | Environment=MAILER_PORT=80 | |
| - | < | + | Environment=SEDIMENT_FOOTER_LINK_1='https:// |
| - | [Unit] | + | Environment=SEDIMENT_FOOTER_LINK_2='https://chaotikum.org/ |
| - | Description=sediment | + | Environment=SEDIMENT_FOOTER_LINK_3='https:// |
| - | After=syslog.target network.target | + | ExecStart=/usr/local/rvm/bin/rvm 3.1.4@sediment do bundle exec rails s -e production -p 80 |
| - | + | ||
| - | [Service] | + | |
| - | Type=simple | + | |
| - | WorkingDirectory=/root/sediment/ | + | |
| - | Environment=RAILS_SERVE_STATIC_FILES=1 | + | |
| - | Environment=MAILER_PASSWORD='CHANGEME' | + | |
| - | Environment=MAILER_HOST='sediment.chaotikum.org' | + | |
| - | Environment=MAILER_PORT='80' | + | |
| - | ExecStart=/root/sediment/bin/rails s -e production -p 80 | + | |
| Restart=always | Restart=always | ||
| Zeile 150: | Zeile 145: | ||
| </ | </ | ||
| - | ===== Wartung ===== | ||
| - | In das Textfeld einfach das Datum der Wartung eintragen, am besten in der Form yyyy-mm-dd. | ||
| - | |||
| - | {{NEWPAGE> | ||
| - | }} | ||
| - | |||
| - | {{topic>: | ||
| - | ~~NOCACHE~~ | ||