Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

etc_systemd_system_commento.j2 953B

123456789101112131415161718192021222324
  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_PORT={{ commento_internal_port }}
  13. Environment=COMMENTO_POSTGRES=postgres://{{ commento_db_username }}:{{ commento_db_password }}@localhost:5432/{{ commento_db_database }}?sslmode=disable
  14. Environment=COMMENTO_STATIC=/home/{{ main_user_name }}/commento
  15. Environment=COMMENTO_BIND_ADDRESS=127.0.0.1
  16. Environment=COMMENTO_SMTP_HOST=localhost
  17. Environment=COMMENTO_SMTP_PORT=25
  18. Environment=COMMENTO_SMTP_USERNAME=example@gmail.com
  19. Environment=COMMENTO_SMTP_PASSWORD=hunter2
  20. Environment=COMMENTO_SMTP_FROM_ADDRESS=no-reply@{{ commento_subdomain }}.{{ domain }}
  21. [Install]
  22. WantedBy=multi-user.target