This file is a template for environment variables needed by the application. It's not used by the application directly, but serves as a guide for creating a `.env` file, which is used. Here's a breakdown of the variables:
### Base
Basic configurations such as the location of the application.
-`APP_DIR`: The directory where the application is located.
### Host Ports
Ports on which various services are running.
-`CKAN_PORT_HOST`: The port on which CKAN is running.
Solr is a highly reliable, scalable, and fault-tolerant full-text search engine. CKAN uses it for indexing and searching data.
-`SOLR_IMAGE_VERSION`: The version of the Solr image.
-`SOLR_PORT`: The port on which Solr is running.
-`SOLR_CKAN_DATABASE`: The CKAN database for Solr.
-`CKAN_SOLR_URL`: The URL of the Solr instance used by CKAN.
-`TEST_CKAN_SOLR_URL`: The URL of the Solr instance used by CKAN for testing.
### Redis
Redis is an in-memory data structure store, used as a database, cache, and message broker. CKAN uses it for tasks such as session management and job queueing.
-`REDIS_VERSION`: The version of Redis.
-`REDIS_PORT`: The port on which Redis is running.
-`REDIS_CKAN_DATABASE`: The CKAN database for Redis.
-`CKAN_REDIS_URL`: The URL of the Redis instance used by CKAN.
-`TEST_CKAN_REDIS_URL`: The URL of the Redis instance used by CKAN for testing.
### NGINX
NGINX is a high-performance web server and reverse proxy. In the context of CKAN, it is used to serve static content and as a reverse proxy to improve performance and scalability. [**Default reverse proxy**]
-`NGINX_PORT`: The port on which NGINX is running.
-`NGINX_SSLPORT`: The port on which NGINX is running with SSL.
-`NGINX_LOG_DIR`: The directory where NGINX logs are stored.
### Apache HTTP Server
Apache is an open-source web server. It can be used by CKAN to serve its web application. [**Alternative reverse proxy/Development reserve proxy**]
-`APACHE_VERSION`: The version of Apache.
-`APACHE_PORT`: The port on which Apache is running.
-`APACHE_LOG_DIR`: The directory where Apache logs are stored.
### NGINX/APACHE
This section refers to the proxy server configuration, which can be either NGINX or Apache. The proxy server is used to route requests to the correct CKAN application.
-`PROXY_SERVER_NAME`: The server name for the proxy.
-`PROXY_SERVER_PROTOCOL`: The protocol for the proxy server.
-`PROXY_SERVER_URL`: The URL of the proxy server.
-`PROXY_CKAN_LOCATION`: The location of the CKAN proxy.
-`PROXY_PYCSW_LOCATION`: The location of the PYCSW proxy.
### pycsw
pycsw is a catalogue server for spatial metadata. CKAN uses it to expose spatial and geospatial metadata using web standards by using [`ckan-pycsw`](https://github.com/mjanez/ckan-pycsw).
-`PYCSW_PORT`: The port on which PYCSW is running.
-`CKAN_URL`: The URL of the CKAN instance.
-`PYCSW_URL`: The URL of the PYCSW instance.
-`PYCSW_CKAN_SCHEMA`: The schema used by PYCSW for CKAN.
-`PYCSW_OUPUT_SCHEMA`: The output schema used by PYCSW.
-`PYCSW_CRON_DAYS_INTERVAL`: The number of days between each scheduler job for PYCSW.
-`PYCSW_CRON_HOUR_START`: The hour of the day when the scheduler job for PYCSW starts.
-`TZ`: The timezone.
### CKAN databases
This section refers to the databases used by CKAN, which are typically PostgreSQL for the main# Environment variables
## Overview
This file is a template for environment variables needed by the application. It's not used by the application directly, but serves as a guide for creating a `.env` file, which is used. Here's a breakdown of the variables:
### Base
Basic configurations such as the location of the application.
-`APP_DIR`: The directory where the application is located.
### Host Ports
Ports on which various services are running.
-`CKAN_PORT_HOST`: The port on which CKAN is running.
-`CKAN_SOLR_URL`: The URL of the Solr instance used by CKAN.
-`TEST_CKAN_SOLR_URL`: The URL of the Solr instance used by CKAN for testing.
### Redis
Redis is an in-memory data structure store, used as a database, cache, and message broker. CKAN uses it for tasks such as session management and job queueing.
-`CKAN_REDIS_URL`: The URL of the Redis instance used by CKAN.
-`TEST_CKAN_REDIS_URL`: The URL of the Redis instance used by CKAN for testing.
### NGINX
NGINX is a high-performance web server and reverse proxy. In the context of CKAN, it is used to serve static content and as a reverse proxy to improve performance and scalability. [**Default reverse proxy**]
-`NGINX_PORT`: The port on which NGINX is running.
-`NGINX_SSLPORT`: The port on which NGINX is running with SSL.
-`NGINX_LOG_DIR`: The directory where NGINX logs are stored.
### Apache HTTP Server
Apache is an open-source web server. It can be used by CKAN to serve its web application. [**Alternative reverse proxy/Development reserve proxy**]
-`APACHE_VERSION`: The version of Apache.
-`APACHE_PORT`: The port on which Apache is running.
-`APACHE_LOG_DIR`: The directory where Apache logs are stored.
### NGINX/APACHE
This section refers to the proxy server configuration, which can be either NGINX or Apache. The proxy server is used to route requests to the correct CKAN application.
-`PROXY_SERVER_NAME`: The server name for the proxy.
pycsw is a catalogue server for spatial metadata. CKAN uses it to expose spatial and geospatial metadata using web standards by using [`ckan-pycsw`](https://github.com/mjanez/ckan-pycsw).
-`TEST_CKAN_SQLALCHEMY_URL`: The SQLAlchemy URL for the CKAN test database.
-`TEST_CKAN_DATASTORE_WRITE_URL`: The SQLAlchemy URL for writing to the Datastore test database.
-`TEST_CKAN_DATASTORE_READ_URL`: The SQLAlchemy URL for reading from the Datastore test database.
### Dev settings
This section contains configurations specific to the CKAN development environment.
-`USE_HTTPS_FOR_DEV`: Whether to use HTTPS for development.
-`CKAN_DEV_COMPOSE_SERVICE`: The Docker Compose service for CKAN development.
### CKAN core
This section contains configurations related to the core CKAN application. It includes variables for the CKAN version, site ID, site URL, root path, port, favicon, logo, and secrets for the Beaker session and JWT API tokens.
-`CKAN_VERSION`: The version of CKAN.
-`CKAN_SITE_ID`: The site ID for CKAN.
-`CKAN_SITE_URL`: The URL of the CKAN site.
-`CKAN__ROOT_PATH`: The root path for CKAN.
-`CKAN__FAVICON`: The path to the favicon for CKAN.
-`CKAN__SITE_LOGO`: The path to the logo for CKAN.