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:14] – [Sediment] 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 39: Zeile 39:
 Install Ruby: Install Ruby:
 <code> <code>
-rvm install ruby-3.0.3+rvm install ruby-3.1.4
 </code> </code>
  
Zeile 55: 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 61: Zeile 61:
  
 <code> <code>
-bundle update --bundler +bundle install
-</code> +
- +
-Create secrets: +
- +
-<code> +
-EDITOR=vim rails credentials:edit+
 </code> </code>
  
Zeile 79: Zeile 73:
  
 <code> <code>
-yarn install --check-files 
 rake assets:precompile rake assets:precompile
 </code> </code>
  
 === Systemd Service === === Systemd Service ===
- 
-You can run the server manually using 
- 
-<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'' Create systemd service ''/etc/systemd/system/sediment.service''
Zeile 101: 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.1647785647.txt.gz · Zuletzt geändert: 20.03.2022 14:14 von Malte