Commit 990c992b authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: add gunicorn service to serve /api for rebuilder-snapshot.d.o

parent 4cd5725c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
[Unit]
Description=Gunicorn instance to serve rebuilder-snapshot metadata
After=network.target

[Service]
User=www-data
Group=www-data
WorkingDirectory=/srv/rebuilder-snapshop/metaservice/
ExecStart=/usr/bin/gunicorn --workers 3 --bind 127.0.0.1:5001 wsgi:app

[Install]
WantedBy=multi-user.target
+2 −1
Original line number Diff line number Diff line
@@ -483,10 +483,11 @@ if [ -f /etc/debian_version ] ; then
			DEBS="$DEBS ffmpeg python3-popcon dose-extra"
			;;
		esac
		# packages needed for snapshot.reproducible-builds.org (on osuosl4-amd64 and osuosl5, as we migrate from the former to the later)
		# packages needed for snapshot.reproducible-builds.org and snapshot-rebuilder.d.n (on osuosl4-amd64 and osuosl5, as we migrate from the former to the later)
		case $HOSTNAME in
			osuosl4*|osuosl5*)	DEBS="$DEBS
						nginx-full
						gunicorn
						postgresql-15
						postgresql-plpython3-15
						python3-dateutil