From 3ad40ae681b2c0d70e1874aa7fbdd529a2d0ddf7 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 14 Sep 2020 16:38:42 +0200 Subject: [PATCH] Use a default file --- debian/ghostream.default | 7 +++++++ debian/ghostream.service | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 debian/ghostream.default diff --git a/debian/ghostream.default b/debian/ghostream.default new file mode 100644 index 0000000..ccf7acc --- /dev/null +++ b/debian/ghostream.default @@ -0,0 +1,7 @@ +# You may change the following +FLASK_CONFIG="production" +LDAP_URI="ldap://127.0.0.1:389" +LDAP_USER_DN="cn=Users,dc=example,dc=com" +SITE_NAME="Ghostream" +SITE_HOSTNAME="localhost" +FAVICON="/favicon.ico" diff --git a/debian/ghostream.service b/debian/ghostream.service index 4ee8f4e..be04a26 100644 --- a/debian/ghostream.service +++ b/debian/ghostream.service @@ -5,12 +5,6 @@ After=syslog.target [Service] User=www-data WorkingDirectory=/var/local/ghostream -Environment=FLASK_CONFIG="production" -Environment=LDAP_URI="ldap://127.0.0.1:389" -Environment=LDAP_USER_DN="cn=Utilisateurs,dc=crans,dc=org" -Environment=SITE_NAME="Crans Stream" -Environment=SITE_HOSTNAME="stream.crans.org" -Environment=FAVICON="https://www.crans.org/images/favicon.ico" EnvironmentFile=-/etc/default/ghostream ExecStart=/usr/bin/uwsgi --http-socket 127.0.0.1:8080 --master --plugin python3 --module ghostream:app --static-map /static=/var/local/ghostream/ghostream/static Restart=on-failure