Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| infrastruktur:container:sediment [20.03.2022 14:12] – [Sediment] 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: | ||
| </ | </ | ||
| === Systemd Service === | === Systemd Service === | ||
| - | |||
| - | You can run the server manually using | ||
| - | |||
| - | < | ||
| - | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD=' | ||
| - | </ | ||
| Create systemd service ''/ | 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='W5^L9D*$$7HiEp# | + | Environment=RAILS_SERVE_STATIC_FILES=true |
| - | Environment=MAILER_HOST=' | + | Environment=SEDIMENT_OPENID_DISPLAY_NAME='Chaotikum Account' |
| - | Environment=MAILER_PORT=' | + | Environment=SEDIMENT_OPENID_AUTH_URI=' |
| - | ExecStart=/ | + | Environment=SEDIMENT_OPENID_TOKEN_URI=' |
| + | Environment=SEDIMENT_OPENID_CLIENT_ID=' | ||
| + | Environment=SEDIMENT_OPENID_CLIENT_SECRET=' | ||
| + | Environment=SEDIMENT_OPENID_SCOPE=' | ||
| + | Environment=SEDIMENT_OPENID_LOGOUT_URL=' | ||
| + | Environment=SEDIMENT_OPENID_GROUP_KEY='groups' | ||
| + | Environment=SEDIMENT_OPENID_GROUP_VALUE='/ | ||
| + | Environment=SECRET_KEY_BASE=********************** | ||
| + | Environment=SMTP_ADDRESS=mail.chaotikum.net | ||
| + | Environment=SMTP_PORT=587 | ||
| + | Environment=SMTP_USER=sediment | ||
| + | Environment=SMTP_PASSWORD=' | ||
| + | Environment=SMTP_AUTHENTICATION=plain | ||
| + | Environment=SMTP_ENABLE_STARTTLS_AUTO=1 | ||
| + | Environment=MAILER_FROM=sediment@chaotikum.org | ||
| + | Environment=MAILER_HOST=sediment.chaotikum.org | ||
| + | Environment=MAILER_PORT=80 | ||
| + | Environment=SEDIMENT_FOOTER_LINK_1=' | ||
| + | Environment=SEDIMENT_FOOTER_LINK_2=' | ||
| + | Environment=SEDIMENT_FOOTER_LINK_3=' | ||
| + | ExecStart=/ | ||
| Restart=always | Restart=always | ||
| Zeile 121: | Zeile 145: | ||
| </ | </ | ||
| - | ===== Wartung ===== | ||
| - | In das Textfeld einfach das Datum der Wartung eintragen, am besten in der Form yyyy-mm-dd. | ||
| - | |||
| - | {{NEWPAGE> | ||
| - | }} | ||
| - | |||
| - | {{topic>: | ||
| - | ~~NOCACHE~~ | ||