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 [07.11.2021 10:52] – [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                      +| 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>
  
-=== Running As IPv6 === +=== Systemd Service ===
- +
-Now you can run the server using +
- +
-<code> +
-RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD='CHANGEME' MAILER_HOST='[2a01:4f8:160:3067::37]' MAILER_PORT='80' rails s -e production -p 80 -b [::] +
-</code> +
- +
-Create systemd service `/etc/systemd/system/sediment.service` +
- +
-<code> +
-[Unit] +
-Description=sediment +
-After=syslog.target network.target +
- +
-[Service+
-Type=simple +
-WorkingDirectory=/root/sediment/ +
-Environment=RAILS_SERVE_STATIC_FILES=1 +
-Environment=MAILER_PASSWORD='CHANGEME' +
-Environment=MAILER_HOST='[2a01:4f8:160:3067::37]' +
-Environment=MAILER_PORT='80' +
-ExecStart=/root/sediment/bin/rails s -e production -p 80 -b [::] +
-Restart=always +
- +
-[Install] +
-WantedBy=multi-user.target +
-</code> +
- +
-=== Running As IPv4 Behind Reverse Proxy On Web === +
- +
-Now you can run the server 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''
  
 <code> <code>
Zeile 113: 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='CHANGEME+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=/root/sediment/bin/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
  
Zeile 153: Zeile 148:
 In das Textfeld einfach das Datum der Wartung eintragen, am besten in der Form yyyy-mm-dd.  In das Textfeld einfach das Datum der Wartung eintragen, am besten in der Form yyyy-mm-dd. 
  
-{{NEWPAGE>infrastruktur:wartung#pagetemplates:wartungstemplate:sediment|Sediment+{{NEWPAGE>infrastruktur:wartung:sediment#pagetemplates:wartungstemplate:sediment|Sediment
 }}  }} 
  
infrastruktur/container/sediment.1636282360.txt.gz · Zuletzt geändert: 07.11.2021 10:52 von Malte