- HTML 63.9%
- Python 31.3%
- Dockerfile 4.8%
| .github | ||
| .idea | ||
| .media | ||
| .vscode | ||
| rygforms | ||
| .gitignore | ||
| Dockerfile | ||
| EXAMPLE.env | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| rp-rygforms.conf | ||
| web-rygforms.service | ||
RYG Forms
OAuth2 for Typeform
Warning
This project is experimental and is no longer in development.
It remains published here for historical and archival purposes.
It might have security issues, which we considered out-of-scope for the goals of the project.
Running
Development
-
Clone this repository:
git clone git@github.com:RYGhub/rygforms.git -
Enter the cloned directory:
cd rygforms -
Create a new
.envfile inside containing your configuration (see the example):cp EXAMPLE.env .env vim .env -
Install the requirements using Poetry:
poetry install -
Run the debug server from inside the Poetry environment:
poetry shell python -m rygforms
Production
-
Create a new
rygformsuser:adduser rygforms --system -
Create a working directory for RYGforms, set the owner to
rygformsand enter it:mkdir /opt/rygforms cd /opt/rygforms -
Create a new venv and enter it:
python -m venv venv source venv/bin/activate -
Install through PyPI:
pip install rygforms gunicorn -
Create a new
.envfile inside containing your configuration (see the example):curl https://raw.githubusercontent.com/RYGhub/rygforms/master/EXAMPLE.env > .env vim .env -
Change the owner of the working directory to
rygforms:chown rygforms: /opt/rygforms -
Copy the provided systemd unit file to the
/etc/systemd/systemdirectory:curl https://raw.githubusercontent.com/RYGhub/rygforms/master/web-rygforms.service > /etc/systemd/system/web-rygforms.service -
Reload the systemd unit files:
systemctl daemon-reload -
Start (and optionally enable) the service:
systemctl start "web-rygforms" systemctl enable "web-rygforms" -
Copy the provided Apache site file to the
/etc/apache2/sites-availabledirectory:
curl https://raw.githubusercontent.com/RYGhub/rygforms/master/rp-rygforms.conf > /etc/apache2/sites-available/rp-rygforms.conf
- Enable the
rp-rygformssite and reload the Apache configuration:
a2ensite rp-rygforms
systemctl reload apache2