dataset/seed/peertube/templates/peertube.service

6 lines
1.7 KiB
SYSTEMD
Raw Normal View History

2022-04-08 18:53:57 +02:00
[Service]
Environment=PGPASSFILE=/usr/local/lib/secrets/postgresql.pass
2023-06-23 08:12:05 +02:00
ExecStartPost=+/usr/bin/timeout 90 sh -c 'while ! /usr/bin/psql --set=sslmode=verify-full -h {{ general.postgresql.pg_client_server_domainname }} -U {{ general.postgresql.pg_client_username }} {{ general.postgresql.pg_client_database }} -c "SELECT * FROM plugin;"; do sleep 1; done'
ExecStartPost=+/usr/bin/psql --set=sslmode=verify-full -h {{ general.postgresql.pg_client_server_domainname }} -U {{ general.postgresql.pg_client_username }} {{ general.postgresql.pg_client_database }} -c "DELETE FROM plugin;"
ExecStartPost=+/usr/bin/psql --set=sslmode=verify-full -h {{ general.postgresql.pg_client_server_domainname }} -U {{ general.postgresql.pg_client_username }} {{ general.postgresql.pg_client_database }} -c "INSERT INTO plugin (name, type, version, enabled, uninstalled, \"peertubeEngine\", description, homepage, settings, \"createdAt\", \"updatedAt\") VALUES ('auth-openid-connect', '1', '0.1.0', true, false, '>=2.2.0', 'Add OpenID connect support to login form in PeerTube.', 'https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-openid-connect', '{\"scope\": \"openid email profile\", \"client-id\": \"{{ general.oauth2_client.oauth2_client_id }}\", \"discover-url\": \"https://{{ general.oauth2_client.oauth2_client_server_domainname }}/.well-known/openid-configuration\", \"client-secret\": \"{{ general.oauth2_client.oauth2_client_secret }}\", \"mail-property\": \"email\", \"auth-display-name\": \"OpenID Connect\", \"username-property\": \"nickname\", \"signature-algorithm\": \"{{ general.oauth2_client.oauth2_client_token_signature_algo }}\", \"display-name-property\": \"email\"}', '2022-04-05 18:12:34.832+02', '2022-04-05 18:12:34.832+02')"