Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige ÜberarbeitungLetzte ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
infrastruktur:container:sediment [07.11.2021 11:24] – [Wartung] Malte | infrastruktur:container:sediment [09.05.2024 15:58] – [Tabelle] 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 |
- | + | ||
- | Now you can run the server using | + | |
- | + | ||
- | < | + | |
- | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD=' | + | |
- | </ | + | |
- | + | ||
- | Create systemd service `/ | + | |
- | + | ||
- | < | + | |
- | [Unit] | + | |
- | Description=sediment | + | |
- | After=syslog.target network.target | + | |
- | + | ||
- | [Service] | + | |
- | Type=simple | + | |
- | WorkingDirectory=/ | + | |
- | Environment=RAILS_SERVE_STATIC_FILES=1 | + | |
- | Environment=MAILER_PASSWORD=' | + | |
- | Environment=MAILER_HOST=' | + | |
- | Environment=MAILER_PORT=' | + | |
- | ExecStart=/ | + | |
- | Restart=always | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=multi-user.target | + | |
- | </ | + | |
- | + | ||
- | === Running As IPv4 Behind Reverse Proxy On Web === | + | |
- | + | ||
- | Now you can run the server using | + | |
- | + | ||
- | < | + | |
- | RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD=' | + | |
- | </ | + | |
- | Create systemd service | + | Create systemd service |
< | < | ||
Zeile 113: | 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=' | + | Environment=SEDIMENT_OPENID_DISPLAY_NAME='Chaotikum Account' |
- | Environment=MAILER_PORT=' | + | Environment=SEDIMENT_OPENID_AUTH_URI=' |
- | ExecStart=/root/sediment/bin/rails s -e production -p 80 | + | 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=/usr/local/rvm/bin/rvm 3.1.4@sediment do bundle exec rails s -e production -p 80 | ||
Restart=always | Restart=always | ||