forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #152 from mjanez/ckan-2.10.5
Default use of NGINX and general improvements
- Loading branch information
Showing
15 changed files
with
544 additions
and
149 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 |
---|---|---|
|
@@ -3,18 +3,32 @@ APP_DIR=/srv/app | |
# Sets Docker Compose project name to avoid resource conflicts between projects. Defaults to the folder name "ckan-docker" if not set. | ||
#COMPOSE_PROJECT_NAME=ckan-docker-mytheme | ||
|
||
# Dev settings | ||
USE_HTTPS_FOR_DEV=False | ||
CKAN_DEV_COMPOSE_SERVICE=ckan-dev | ||
## ckan-pycsw unverified mode (True/False). SSL certificate from host will download if SSL_UNVERIFIED_MODE=True, to avoid SSL error when certificate was self-signed. | ||
SSL_UNVERIFIED_MODE=False | ||
|
||
# Host Ports | ||
CKAN_PORT_HOST=5000 | ||
PYCSW_PORT_HOST=8000 | ||
# Common proxy server for Apache or NGINX. | ||
# Change all the PROXY_SERVER_PORT_HOST to PROXY_SERVER_HTTPS_PORT_HOST if you can use HTTPS instead of HTTP (Only for NGINX and not development compose) | ||
PROXY_SERVER_BASE_PORT_HOST=81 | ||
# Change all the PROXY_SERVER_URL_PORT_HOST to PROXY_SERVER_HTTPS_PORT_HOST if you can use HTTPS instead of HTTP (Only for NGINX and not development compose) | ||
PROXY_SERVER_HTTP_PORT_HOST=81 | ||
PROXY_SERVER_HTTPS_PORT_HOST=8443 | ||
# Server port for the proxy server. Better using the SSL port for production, in DEV or if using balancer: PROXY_SERVER_PORT_HOST=PROXY_SERVER_BASE_PORT_HOST | ||
PROXY_SERVER_PORT_HOST=${PROXY_SERVER_HTTPS_PORT_HOST} | ||
NGINX_PORT_HOST=${PROXY_SERVER_BASE_PORT_HOST} | ||
# Ports for NGINX (matches HTTP/HTTPS ports) | ||
NGINX_PORT_HOST=${PROXY_SERVER_HTTP_PORT_HOST} | ||
NGINX_SSLPORT_HOST=${PROXY_SERVER_HTTPS_PORT_HOST} | ||
APACHE_PORT_HOST=${PROXY_SERVER_BASE_PORT_HOST} | ||
PYCSW_PORT_HOST=8000 | ||
# Port for Apache | ||
APACHE_PORT_HOST=${PROXY_SERVER_HTTP_PORT_HOST} | ||
|
||
# Server port for the proxy server and CKAN urls. Better using the SSL port. | ||
# (If needed for Development Mode) uncomment the following line: | ||
# PROXY_SERVER_URL_PORT_HOST=${PROXY_SERVER_HTTP_PORT_HOST} | ||
# (If needed for Development Mode) And comment the following line: | ||
PROXY_SERVER_URL_PORT_HOST=${PROXY_SERVER_HTTPS_PORT_HOST} | ||
# URL protocol. Change to http if you dont use SSL | ||
PROXY_SERVER_PROTOCOL=https | ||
|
||
# Solr | ||
SOLR_IMAGE_VERSION=2.9-solr9-spatial | ||
|
@@ -41,11 +55,9 @@ APACHE_PORT=80 | |
APACHE_LOG_DIR=/var/log/apache | ||
|
||
#NGINX/APACHE | ||
## Check CKAN__ROOT_PATH and CKANEXT__DCAT__BASE_URI and CKANEXT__SCHEMINGDCAT_GEOMETADATA_BASE_URI. If you don't need to use domain locations, it is better to use the nginx configuration. Leave blank or use the root `/`. If you dont need PROXY_SERVER_PORT_HOST (e.g. is 80), edit the PROXY_SERVER_URL and remove :${PROXY_SERVER_PORT_HOST} | ||
## Check CKAN__ROOT_PATH and CKANEXT__DCAT__BASE_URI and CKANEXT__SCHEMINGDCAT_GEOMETADATA_BASE_URI. If you don't need to use domain locations, it is better to use the nginx configuration. Leave blank or use the root `/`. If you dont need PROXY_SERVER_URL_PORT_HOST (e.g. is 80), edit the PROXY_SERVER_URL and remove :${PROXY_SERVER_URL_PORT_HOST} | ||
PROXY_SERVER_NAME=localhost | ||
# URL protocol. Change to https if you use SSL | ||
PROXY_SERVER_PROTOCOL=http | ||
PROXY_SERVER_URL=${PROXY_SERVER_PROTOCOL}://${PROXY_SERVER_NAME}:${PROXY_SERVER_PORT_HOST} | ||
PROXY_SERVER_URL=${PROXY_SERVER_PROTOCOL}://${PROXY_SERVER_NAME}:${PROXY_SERVER_URL_PORT_HOST} | ||
PROXY_CKAN_LOCATION=/catalog | ||
PROXY_PYCSW_LOCATION=/csw | ||
|
||
|
@@ -86,10 +98,6 @@ TEST_CKAN_SQLALCHEMY_URL=postgres://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGR | |
TEST_CKAN_DATASTORE_WRITE_URL=postgresql://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGRES_HOST}/${DATASTORE_TEST_DB} | ||
TEST_CKAN_DATASTORE_READ_URL=postgresql://${DATASTORE_READONLY_USER}:${DATASTORE_READONLY_PASSWORD}@${POSTGRES_HOST}/${DATASTORE_TEST_DB} | ||
|
||
# Dev settings | ||
USE_HTTPS_FOR_DEV=false | ||
CKAN_DEV_COMPOSE_SERVICE=ckan-dev | ||
|
||
# CKAN core | ||
## If use docker-compose.ghcr.yml only "*.*.*" versions available in: https://github.com/mjanez/ckan-docker/pkgs/container/ckan-docker | ||
CKAN_VERSION=2.10.5 | ||
|
@@ -102,7 +110,8 @@ CKAN__SITE_LOGO=${PROXY_CKAN_LOCATION}/images/default/ckan-logo.png | |
# CKAN site info | ||
CKAN__SITE_TITLE="CKAN Open Data" | ||
CKAN__SITE_DESCRIPTION="ckan-docker *spatial Open Data portal" | ||
CKAN__SITE_INTRO_TEXT="[![ckan-docker-spatial](https://img.shields.io/badge/ckan_docker_spatial-CKAN_${CKAN_VERSION}-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker)\n[`ckan-docker *spatial`](https://github.com/mjanez/ckan-docker) is a ready-to-use development environment for [CKAN](https://github.com/ckan/ckan), the world’s leading open-source data portal platform." | ||
# Using [#en#], [#es#], etc. to define the language of the text as needed. | ||
CKAN__SITE_INTRO_TEXT="[#en#][![ckan-docker-spatial](https://img.shields.io/badge/ckan_docker_spatial-CKAN_${CKAN_VERSION}-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker)\n[`ckan-docker *spatial`](https://github.com/mjanez/ckan-docker) is a ready-to-use development environment for [CKAN](https://github.com/ckan/ckan), the world’s leading open-source data portal platform.[#es#][![ckan-docker-spatial](https://img.shields.io/badge/ckan_docker_spatial-CKAN_${CKAN_VERSION}-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker)\n[`ckan-docker *spatial`](https://github.com/mjanez/ckan-docker) es un entorno de desarrollo listo para usar para [CKAN](https://github.com/ckan/ckan), la plataforma de portales de datos de código abierto líder en el mundo." | ||
CKAN__SITE_ABOUT=${CKAN__SITE_INTRO_TEXT} | ||
# Custom licenses that are aligned with DCAT-AP (Also works with DEV Mode) | ||
LICENSES_GROUP_URL=file://${APP_DIR}/src/ckanext-schemingdcat/ckanext/schemingdcat/public/static/licenses.json | ||
|
@@ -112,7 +121,7 @@ CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME | |
CKAN___API_TOKEN__JWT__DECODE__SECRET=string:CHANGE_ME | ||
CKAN_SYSADMIN_NAME=ckan_admin | ||
CKAN_SYSADMIN_PASSWORD=test1234 | ||
CKAN_SYSADMIN_EMAIL=[email protected] | ||
CKAN_SYSADMIN_EMAIL=your_emai@${PROXY_SERVER_NAME} | ||
CKAN_STORAGE_PATH=/var/lib/ckan | ||
CKAN_LOGS_PATH=/var/log | ||
# SMTP settings | ||
|
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
Oops, something went wrong.