-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from GateNLP/privacy-policy
Privacy policy & Terms & Conditions
- Loading branch information
Showing
17 changed files
with
520 additions
and
7 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
backend/migrations/0029_serviceuser_agreed_privacy_policy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.15 on 2023-02-22 10:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('backend', '0028_project_uuid'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='serviceuser', | ||
name='agreed_privacy_policy', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,7 @@ To run separately: | |
``` | ||
|
||
## Deployment using Docker | ||
Deployment is via [docker-compose](https://docs.docker.com/compose/), using [NGINX](https://www.nginx.com/) to serve static content, a separate [postgreSQL](https://hub.docker.com/_/postgres) service containing the database and a database backup service (see `docker-compose.yml` for details). | ||
Teamware can be deployed via [docker-compose](https://docs.docker.com/compose/), using [NGINX](https://www.nginx.com/) to serve static content, a separate [postgreSQL](https://hub.docker.com/_/postgres) service containing the database and a database backup service (see `docker-compose.yml` for details). | ||
|
||
1. Run `./generate-docker-env.sh` to create a `.env` file containing randomly generated secrets which are mounted as environment variables into the container. See [below](#env-config) for details. | ||
|
||
|
@@ -218,6 +218,20 @@ email: | |
# You will also need to set user and passwordSecret if your | ||
# mail server requires authentication | ||
|
||
privacyPolicy: | ||
# Contact details of the host and administrator of the teamware instance, if no admin defined, defaults to the host values. | ||
host: | ||
# Name of the host | ||
name: "Service Host" | ||
# Host's physical address | ||
address: "123 Example Street, City. Country." | ||
# A method of contacting the host, field supports HTML for e.g. linking to a form | ||
contact: "<a href='mailto:[email protected]'>Email</a>" | ||
admin: | ||
name: "Dr. Service Admin" | ||
address: "Department of Example Studies, University of Example, City. Country." | ||
contact: "<a href='mailto:[email protected]'>Email</a>" | ||
|
||
backend: | ||
# Name of the random secret you created above | ||
djangoSecret: django-secret | ||
|
@@ -304,3 +318,46 @@ This package includes the script linked in the documentation above, which simpli | |
DJANGO_GMAIL_API_CLIENT_SECRET='google_assigned_secret' | ||
DJANGO_GMAIL_API_REFRESH_TOKEN='google_assigned_token' | ||
``` | ||
|
||
|
||
#### Teamware Privacy Policy and Terms & Conditions | ||
|
||
Teamware includes a default privacy policy and terms & conditions, which are required for running the application. | ||
|
||
The default privacy policy is intended to be compliant with UK GDPR regulations, which may comply with the rights of users of your deployment, however it is your responsibility to ensure that this is the case. | ||
|
||
If the default privacy policy covers your use case, then you will need to include configuration for a few contact details. | ||
|
||
Contact details are required for the **host** and the **administrator**: the **host** is the organisation or individual responsible for managing the deployment of the teamware instance and the **administrator** is the organisation or individual responsible for managing users, projects and data on the instance. In many cases these roles will be filled by the same organisation or individual, so in this case specifying just the **host** details is sufficient. | ||
|
||
For deployment from source, set the following environment variables: | ||
|
||
* `PP_HOST_NAME` | ||
* `PP_HOST_ADDRESS` | ||
* `PP_HOST_CONTACT` | ||
* `PP_ADMIN_NAME` | ||
* `PP_ADMIN_ADDRESS` | ||
* `PP_ADMIN_CONTACT` | ||
|
||
For deployment using docker-compose, set these values in `.env`. | ||
|
||
If the host and administrator are the same, you can just set the `PP_HOST_*` variables above which will be used for both. | ||
|
||
##### Including a custom Privacy Policy and/or Terms & Conditions | ||
|
||
If the default privacy policy or terms & conditions do not cover your use case, you can easily replace these with your own documents. | ||
|
||
If deploying from source, include markdown (`.md`) files in a `custom-policies` directory in the project root with the exact names `custom-policies/privacy-policy.md` and/or `custom-policies/terms-and-conditions.md` which will be rendered at the corresponding pages on the running web app. If you are not familiar with the Markdown language there are a number of free WYSIWYG-style editor tools available including [StackEdit](https://stackedit.io/app) (browser based) and [Zettlr](https://www.zettlr.com) (desktop app). | ||
|
||
If deploying with docker compose, place the `custom-policies` directory at the same location as the `docker-compose.yml` file before running `./deploy.sh` as above. | ||
|
||
An example custom privacy policy file contents might look like: | ||
|
||
```md | ||
# Organisation X Teamware Privacy Policy | ||
... | ||
... | ||
## Definitions of Roles and Terminology | ||
... | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div id="footer"> | ||
<div> | ||
<b-navbar type="light" variant="light" toggleable="md" fixed="bottom"> | ||
<b-navbar-nav align="right" :small=true> | ||
<b-nav-text>v{{ appVersion }}</b-nav-text> | ||
<b-nav-item to="/privacypolicy">Privacy Policy</b-nav-item> | ||
<b-nav-item to="/cookies">Cookies Policy</b-nav-item> | ||
<b-nav-item to="/terms">Terms & Conditions</b-nav-item> | ||
<b-nav-item to="/about">About</b-nav-item> | ||
</b-navbar-nav> | ||
</b-navbar> | ||
</div> | ||
</div> | ||
</template> | ||
<script> | ||
import {version} from '../../../package.json' | ||
export default { | ||
data: () => ({ | ||
appVersion: version | ||
}), | ||
} | ||
</script> | ||
|
||
<style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.