No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_systemd_system_commento.j2 1.2KB

123456789101112131415161718192021222324252627
  1. [Unit]
  2. Description=Commento daemon service
  3. After=network.target postgresql.service
  4. [Service]
  5. Type=simple
  6. User={{ main_user_name }}
  7. Restart=always
  8. RestartSec=3
  9. WorkingDirectory=/home/{{ main_user_name }}/commento
  10. ExecStart=/home/{{ main_user_name }}/commento/commento
  11. Environment=COMMENTO_ORIGIN=https://{{ commento_subdomain }}.{{ domain }}
  12. Environment=COMMENTO_CDN_PREFIX=https://{{ commento_subdomain }}.{{ domain }}
  13. Environment=COMMENTO_PORT={{ commento_internal_port }}
  14. Environment=COMMENTO_POSTGRES=postgres://{{ commento_db_username }}:{{ commento_db_password }}@localhost:5432/{{ commento_db_database }}?sslmode=disable
  15. Environment=COMMENTO_STATIC=/home/{{ main_user_name }}/commento
  16. Environment=COMMENTO_BIND_ADDRESS=127.0.0.1
  17. Environment=COMMENTO_SMTP_HOST={{ domain }}
  18. Environment=COMMENTO_SMTP_PORT=587
  19. Environment=COMMENTO_SMTP_USERNAME=noreply@{{ domain }}
  20. Environment=COMMENTO_SMTP_PASSWORD={{ lookup('password', secret + '/' + 'mail_noreply_password length=20 chars=ascii_lowercase,ascii_uppercase,digits') }}
  21. Environment=COMMENTO_SMTP_FROM_ADDRESS=noreply@{{ domain }}
  22. Environment=COMMENTO_FORBID_NEW_OWNERS=true
  23. Environment=COMMENTO_ENABLE_LOGGING=false
  24. [Install]
  25. WantedBy=multi-user.target