Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:container:sediment

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
infrastruktur:container:sediment [20.03.2022 14:11] Malteinfrastruktur:container:sediment [07.10.2023 22:11] (aktuell) – [Sediment] Malte
Zeile 1: Zeile 1:
 ====== Sediment ====== ====== Sediment ======
-|Verantwortung  |Malte                          +| Verantwortung  | Malte                               
-|Container      |sediment                           +| Container      | sediment                            
-|W. Ports       |keine                          +| W. Ports       | keine                               
-|OS             |Debian 10.11                      +| OS             | Debian 11.7                         
-|Server         |[[infrastruktur:server:magrathea]] | +| Server         | [[infrastruktur:server:magrathea]]  
-|Zustand        |Produktiv                      |+| Zustand        | Produktiv                           |
  
 {{tag>infrasystem container magrathea productive malte}} {{tag>infrasystem container magrathea productive malte}}
Zeile 12: Zeile 12:
  
 ===== Services ===== ===== Services =====
-^ Serviceübersicht^Version^ +^ Serviceübersicht  ^ Version  
-|Sediment| 0.3.4 |+| Sediment          | 0.4.0    |
  
 ====Sediment==== ====Sediment====
Zeile 22: Zeile 22:
  
 <code> <code>
-apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl+apt install build-essential patch zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl 
 +</code> 
 + 
 +[[https://rvm.io|Install RVM]]: 
 + 
 +Install GPG keys: 
 +<code> 
 +gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
 +</code> 
 + 
 +Install RVM: 
 +<code> 
 +\curl -sSL https://get.rvm.io | bash -s stable 
 +</code> 
 + 
 +Install Ruby: 
 +<code> 
 +rvm install ruby-3.1.4
 </code> </code>
  
Zeile 38: Zeile 55:
  
 <code> <code>
-git clone -4 https://git.chaotikum.org/malte/sediment.git+git clone https://git.chaotikum.org/malte/sediment.git
 </code> </code>
  
Zeile 44: Zeile 61:
  
 <code> <code>
-bundle update --bundler +bundle install
-</code> +
- +
-Create secrets: +
- +
-<code> +
-EDITOR=vim rails credentials:edit+
 </code> </code>
  
Zeile 62: Zeile 73:
  
 <code> <code>
-yarn install --check-files 
 rake assets:precompile rake assets:precompile
 </code> </code>
Zeile 68: Zeile 78:
 === Systemd Service === === Systemd Service ===
  
-You can run the server manually using +Create systemd service ''/etc/systemd/system/sediment.service''
- +
-<code> +
-RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD='CHANGEME' MAILER_HOST='sediment.chaotikum.org' MAILER_PORT='80' rails s -e production -p 80 +
-</code> +
- +
-Create systemd service `/etc/systemd/system/sediment.service`+
  
 <code> <code>
Zeile 84: Zeile 88:
 Type=simple Type=simple
 WorkingDirectory=/root/sediment/ WorkingDirectory=/root/sediment/
-Environment=RAILS_SERVE_STATIC_FILES=1 +Environment=RAILS_ENV=production 
-Environment=MAILER_PASSWORD='W5^L9D*$$7HiEp#ktq0cgd72aDafQc+Environment=RAILS_SERVE_STATIC_FILES=true 
-Environment=MAILER_HOST='sediment.chaotikum.org' +Environment=SEDIMENT_OPENID_DISPLAY_NAME='Chaotikum Account
-Environment=MAILER_PORT='80' +Environment=SEDIMENT_OPENID_AUTH_URI='https://me.chaotikum.org/auth/realms/Chaotikum/protocol/openid-connect/auth' 
-ExecStart=/usr/local/rvm/bin/rvm all do bundle exec rails s -e production -p 80+Environment=SEDIMENT_OPENID_TOKEN_URI='https://me.chaotikum.org/auth/realms/Chaotikum/protocol/openid-connect/token' 
 +Environment=SEDIMENT_OPENID_CLIENT_ID='sediment
 +Environment=SEDIMENT_OPENID_CLIENT_SECRET='****************' 
 +Environment=SEDIMENT_OPENID_SCOPE='email profile openid' 
 +Environment=SEDIMENT_OPENID_LOGOUT_URL='https://me.chaotikum.org/auth/realms/Chaotikum/protocol/openid-connect/logout
 +Environment=SEDIMENT_OPENID_GROUP_KEY='groups' 
 +Environment=SEDIMENT_OPENID_GROUP_VALUE='/freigeschaltet' 
 +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='https://chaotikum.org|Chaotikum' 
 +Environment=SEDIMENT_FOOTER_LINK_2='https://chaotikum.org/impressum|Impressum' 
 +Environment=SEDIMENT_FOOTER_LINK_3='https://chaotikum.org/datenschutzerk|Datenschutzerklärung
 +ExecStart=/usr/local/rvm/bin/rvm 3.1.4@sediment do bundle exec rails s -e production -p 80
 Restart=always Restart=always
  
infrastruktur/container/sediment.1647785500.txt.gz · Zuletzt geändert: 20.03.2022 14:11 von Malte