-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
3,617 additions
and
1,061 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,20 +1,39 @@ | ||
COMPOSE_FILE=docker-compose.yml:docker-compose.override.local.yml | ||
|
||
DEBUG=1 | ||
|
||
QFIELDCLOUD_HOST=localhost | ||
DJANGO_SETTINGS_MODULE=qfieldcloud.settings | ||
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 0.0.0.0 | ||
|
||
SECRET_KEY=change_me | ||
|
||
LETSENCRYPT_EMAIL=[email protected] | ||
LETSENCRYPT_RSA_KEY_SIZE=4096 | ||
# Set to 1 if you're testing your setup to avoid hitting request limits | ||
LETSENCRYPT_STAGING=1 | ||
|
||
STORAGE_ACCESS_KEY_ID=minioadmin | ||
STORAGE_SECRET_ACCESS_KEY=minioadmin | ||
STORAGE_BUCKET_NAME=qfieldcloud-local | ||
STORAGE_REGION_NAME= | ||
# Internal URL to the storage endpoint (from python code) | ||
STORAGE_ENDPOINT_URL=http://s3:9000 | ||
# Public URL to the storage endpoint (external storage should be equivalent to STORAGE_ENDPOINT_URL, local development only, no trailing slash) | ||
STORAGE_ENDPOINT_URL_EXTERNAL=http://localhost:80/minio | ||
# Public port to the storage endpoint browser (local development only) | ||
STORAGE_BROWSER_PORT=8010 | ||
|
||
# URL to the storage endpoint either minio, or external (e.g. S3). | ||
# The URL must be reachable both from within docker and from the host, the default value is the `bridge` docker URL. | ||
# Read more on https://docs.docker.com/network/network-tutorial-standalone/ . | ||
# NOTE: to use minio on windows/mac, change the value to "http://host.docker.internal:8009" | ||
# DEFAULT: http://172.17.0.1:8009 | ||
STORAGE_ENDPOINT_URL=http://172.17.0.1:8009 | ||
|
||
# Public port to the minio API endpoint. It must match the configured port in `STORAGE_ENDPOINT_URL`. | ||
# NOTE: active only when minio is the configured as storage endpoint. Mostly for local development. | ||
# DEFAULT: 8009 | ||
MINIO_API_PORT=8009 | ||
|
||
# Public port to the minio browser endpoint. | ||
# NOTE: active only when minio is the configured as storage endpoint. Mostly for local development. | ||
# DEFAULT: 8010 | ||
MINIO_BROWSER_PORT=8010 | ||
|
||
WEB_HTTP_PORT=80 | ||
WEB_HTTPS_PORT=443 | ||
|
@@ -24,6 +43,8 @@ POSTGRES_PASSWORD=3shJDd2r7Twwkehb | |
POSTGRES_DB=qfieldcloud_db | ||
POSTGRES_HOST=db | ||
POSTGRES_PORT=5432 | ||
# "prefer" OR "require" most of the times | ||
POSTGRES_SSLMODE=prefer | ||
HOST_POSTGRES_PORT=5433 | ||
|
||
GEODB_HOST=geodb | ||
|
@@ -32,9 +53,6 @@ GEODB_USER=postgres | |
GEODB_PASSWORD=KUAa7h!G&wQEmkS3 | ||
GEODB_DB=postgres | ||
|
||
CADDY_ACME_CA=https://acme-staging-v02.api.letsencrypt.org/directory | ||
CADDY_IMPORT_GLOB=(*(N)) | ||
|
||
SENTRY_DSN= | ||
|
||
REDIS_PASSWORD=change_me_with_a_very_loooooooooooong_password | ||
|
@@ -56,7 +74,13 @@ COMPOSE_PROJECT_NAME=qfieldcloud | |
QFIELDCLOUD_DEFAULT_NETWORK=qfieldcloud_default | ||
QFIELDCLOUD_ADMIN_URI=admin/ | ||
|
||
# Timeout in seconds to wait for a job container to finish, otherwise terminate it. | ||
QFIELDCLOUD_WORKER_TIMEOUT_S=60 | ||
|
||
GUNICORN_TIMEOUT_S=300 | ||
GUNICORN_MAX_REQUESTS=300 | ||
GUNICORN_WORKERS=3 | ||
GUNICORN_THREADS=3 | ||
|
||
# required for making COMPOSE_FILE above cross-platform (do not change) | ||
COMPOSE_PATH_SEPARATOR=: |
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 |
---|---|---|
|
@@ -11,6 +11,6 @@ jobs: | |
name: Backport | ||
steps: | ||
- name: Backport | ||
uses: m-kuhn/[email protected].3 | ||
uses: m-kuhn/[email protected].5 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_token: ${{ secrets.NYUKI_TOKEN }} |
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,20 @@ | ||
name: 👓 Close stale issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4 | ||
with: | ||
repo-token: ${{ secrets.NYUKI_TOKEN }} | ||
stale-issue-message: | | ||
The QFieldCloud project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. | ||
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. | ||
If there is no further activity on this issue, it will be closed in a week. | ||
stale-issue-label: 'stale' | ||
only-labels: 'feedback' | ||
days-before-stale: 14 | ||
days-before-close: 7 |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
name: Test | ||
on: push | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
name: Code check and tests | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
@@ -12,24 +14,21 @@ jobs: | |
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
python-version: '3.10' | ||
- name: Install pipenv | ||
run: pip install pipenv | ||
- name: Check code formatting | ||
uses: pre-commit/[email protected] | ||
- name: Prepare docker-compose override file | ||
run: | | ||
ln -s docker-compose.override.local.yml docker-compose.override.yml | ||
- name: Check code formatting | ||
run: | | ||
pipenv install pre_commit | ||
pipenv run python -m pre_commit run --all-files | ||
- name: Check environment variables | ||
- name: Check env vars coniguration | ||
run: | | ||
pipenv install pyyaml | ||
pipenv run python .github/check_envvars/check_envvars.py .env.example --docker-compose-dir . | ||
scripts/check_envvars.sh | ||
- name: Export the env variables file | ||
run: | | ||
cp .env.example .env | ||
export $(egrep -v '^#' .env | xargs) | ||
eval $(egrep "^[^#;]" .env | xargs -d'\n' -n1 | sed -E 's/(\w+)=(.*)/export \1='"'"'\2'"'"'/g') | ||
- name: Pull docker containers | ||
run: docker-compose pull | ||
- name: Build and run docker containers | ||
|
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ __pycache__/ | |
.env | ||
docker-compose.override.yml | ||
client/projects | ||
conf/nginx/certs/* |
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.