mygpo
mygpo copied to clipboard
Self-hosted mygpo getting error 500
I am getting an error 500 when trying to register an account on a self-hosted gpodder instance. It this normal?
Here is my Docker file for mygpo and nginx reverse proxy
mygpo:
FROM python:3.9-alpine as server
RUN apk add --no-cache \
git \
gcc \
python3-dev \
py3-pip \
postgresql-dev \
musl-dev \
libffi-dev \
zlib-dev \
libpq \
libwebp \
libjpeg
RUN git clone -b https://github.com/gpodder/mygpo.git
WORKDIR /mygpo
RUN pip install -r requirements.txt
RUN pip install gunicorn celery django-celery-beat
EXPOSE 8000
CMD [ "gunicorn", "-b", ":8000", "mygpo.wsgi" ]
nginx:
FROM nginx:alpine
COPY default.conf /etc/nginx/conf.d/default.conf
For this code base, the answer is yes. You might have better luck if you pull from my old fork and try it instead. Would probably have to pull the feedservice as well.
https://github.com/Ryochan7/alphagpo https://github.com/Ryochan7/alphagpo-feedservice
Would probably have to pull the feedservice as well.
Would the feedservice go in the same or different container as the main server?
You could put the feedservice project in a separate container and be fine; I had both Django projects hosted on a single Linode VPS running Debian with no use of containers. mygpo uses a web API for the feedservice to grab feeds and return a JSON object with relevant information. My custom version has a few tweaks that I needed when I was running a public mygpo instance. Using the original feedservice from gpodder.net might work mostly but I remember the server being pretty slow with responses and I think it would occasionally error out.