Fixes letsencrypt cert storage and updates env
This commit is contained in:
parent
dac7e4adf5
commit
d3b9ef5858
9 changed files with 22 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
path=""
|
PROJECT_ROOT=""
|
||||||
CONTAINER_NAME="pf"
|
CONTAINER_NAME="pf"
|
||||||
DOMAIN=""
|
DOMAIN=""
|
||||||
APP_PASSWORD=""
|
APP_PASSWORD=""
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,7 @@ FROM trafex/alpine-nginx-php7:ba1dd422
|
||||||
RUN apk update && apk add --no-cache busybox-suid sudo php7-redis php7-pdo php7-pdo_mysql php7-fileinfo shadow gettext bash apache2-utils
|
RUN apk update && apk add --no-cache busybox-suid sudo php7-redis php7-pdo php7-pdo_mysql php7-fileinfo shadow gettext bash apache2-utils
|
||||||
|
|
||||||
COPY static/nginx/nginx.conf /etc/nginx/templateNginx.conf
|
COPY static/nginx/nginx.conf /etc/nginx/templateNginx.conf
|
||||||
# we need to create sites_enabled directory in order for entrypoint.sh being able to copy file after envsubst
|
COPY static/nginx/site.conf /etc/nginx/sites_enabled/templateSite.conf
|
||||||
RUN mkdir -p /etc/nginx/sites_enabled/
|
|
||||||
COPY static/nginx/site.conf /etc/nginx/templateSite.conf
|
|
||||||
|
|
||||||
# Configure PHP-FPM
|
# Configure PHP-FPM
|
||||||
COPY static/php/fpm-pool.conf /etc/php7/php-fpm.d/zzz_custom.conf
|
COPY static/php/fpm-pool.conf /etc/php7/php-fpm.d/zzz_custom.conf
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ A fork of techfreak's [Pathfinder-container](https://gitlab.com/techfreak/pathfi
|
||||||
|
|
||||||
1. **Create a *.env* file (copy .env.example) and make sure every config option has an entry.**
|
1. **Create a *.env* file (copy .env.example) and make sure every config option has an entry.**
|
||||||
```shell
|
```shell
|
||||||
path="" # The path of the cloned repo
|
PROJECT_ROOT="" # The path of the cloned repo
|
||||||
CONTAINER_NAME="pf" # docker container name prefix
|
CONTAINER_NAME="pf" # docker container name prefix
|
||||||
DOMAIN="" # The domain you will be using
|
DOMAIN="" # The domain you will be using
|
||||||
APP_PASSWORD="" # Password for /setup
|
APP_PASSWORD="" # Password for /setup
|
||||||
|
|
@ -55,6 +55,9 @@ A fork of techfreak's [Pathfinder-container](https://gitlab.com/techfreak/pathfi
|
||||||
CCP_SSO_SECRET_KEY=""
|
CCP_SSO_SECRET_KEY=""
|
||||||
CCP_ESI_SCOPES="esi-location.read_online.v1,esi-location.read_location.v1,esi-location.read_ship_type.v1,esi-ui.write_waypoint.v1,esi-ui.open_window.v1,esi-universe.read_structures.v1,esi-corporations.read_corporation_membership.v1,esi-clones.read_clones.v1,esi-characters.read_corporation_roles.v1"
|
CCP_ESI_SCOPES="esi-location.read_online.v1,esi-location.read_location.v1,esi-location.read_ship_type.v1,esi-ui.write_waypoint.v1,esi-ui.open_window.v1,esi-universe.read_structures.v1,esi-corporations.read_corporation_membership.v1,esi-clones.read_clones.v1,esi-characters.read_corporation_roles.v1"
|
||||||
|
|
||||||
|
The `PROJECT_ROOT` key is the *absolute* path to the project directory, ie if you have clone it to /app/pathfinder-containers, this is the value you should enter. If you're unsure of the absolute path, you can use the command `pwd` to get the full absolute path of the current directory.
|
||||||
|
|
||||||
|
|
||||||
1. **Edit the *config/pathfinder/pathfinder.ini*** to your liking
|
1. **Edit the *config/pathfinder/pathfinder.ini*** to your liking
|
||||||
|
|
||||||
Recommended options to change:
|
Recommended options to change:
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ NAME = Pathfinder Community Edition
|
||||||
; Version is used for CSS/JS cache busting and is part of the URL for static resources:
|
; Version is used for CSS/JS cache busting and is part of the URL for static resources:
|
||||||
; e.g. public/js/vX.X.X/app.js
|
; e.g. public/js/vX.X.X/app.js
|
||||||
; Syntax: String (current version)
|
; Syntax: String (current version)
|
||||||
; Default: v2.1.3
|
; Default: v2.1.4
|
||||||
VERSION = v2.1.3
|
VERSION = v2.1.4
|
||||||
|
|
||||||
; Contact information [optional]
|
; Contact information [optional]
|
||||||
; Shown on 'licence', 'contact' page.
|
; Shown on 'licence', 'contact' page.
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,3 @@ MODULES_ENABLED = 1
|
||||||
[PLUGIN.MODULES]
|
[PLUGIN.MODULES]
|
||||||
DEMO = ./app/ui/module/demo
|
DEMO = ./app/ui/module/demo
|
||||||
EMPTY = ./app/ui/module/empty
|
EMPTY = ./app/ui/module/empty
|
||||||
ZKILLTEST = ./app/ui/module/global_killboard
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
- "${CONTAINER_NAME}db"
|
- "${CONTAINER_NAME}db"
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
- $path/pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
|
- $PROJECT_ROOT/pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
|
||||||
restart: always
|
restart: always
|
||||||
pf-redis:
|
pf-redis:
|
||||||
image: redis:6.2.5-alpine3.14
|
image: redis:6.2.5-alpine3.14
|
||||||
|
|
@ -34,7 +34,7 @@ services:
|
||||||
command: ["sh","-c","composer install && php cmd.php --tcpHost 0.0.0.0"]
|
command: ["sh","-c","composer install && php cmd.php --tcpHost 0.0.0.0"]
|
||||||
hostname: socket
|
hostname: socket
|
||||||
volumes:
|
volumes:
|
||||||
- ${path}/websocket:/app
|
- ${PROJECT_ROOT}/websocket:/app
|
||||||
networks:
|
networks:
|
||||||
pf:
|
pf:
|
||||||
aliases:
|
aliases:
|
||||||
|
|
@ -63,9 +63,9 @@ services:
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: true
|
disable: true
|
||||||
volumes:
|
volumes:
|
||||||
- ${path}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
|
- ${PROJECT_ROOT}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
|
||||||
- ${path}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
|
- ${PROJECT_ROOT}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
|
||||||
- ${path}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
|
- ${PROJECT_ROOT}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
|
||||||
depends_on:
|
depends_on:
|
||||||
- pfdb
|
- pfdb
|
||||||
- pf-redis
|
- pf-redis
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ DB_CCP_PASS = $MYSQL_PASSWORD
|
||||||
CCP_SSO_URL = https://login.eveonline.com
|
CCP_SSO_URL = https://login.eveonline.com
|
||||||
CCP_SSO_CLIENT_ID = $CCP_SSO_CLIENT_ID
|
CCP_SSO_CLIENT_ID = $CCP_SSO_CLIENT_ID
|
||||||
CCP_SSO_SECRET_KEY = $CCP_SSO_SECRET_KEY
|
CCP_SSO_SECRET_KEY = $CCP_SSO_SECRET_KEY
|
||||||
|
CCP_SSO_JWK_CLAIM = login.eveonline.com
|
||||||
CCP_SSO_DOWNTIME = 11:00
|
CCP_SSO_DOWNTIME = 11:00
|
||||||
|
|
||||||
; CCP ESI API
|
; CCP ESI API
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
- "${CONTAINER_NAME}db"
|
- "${CONTAINER_NAME}db"
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
- $path/pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
|
- $PROJECT_ROOT/pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
|
||||||
restart: always
|
restart: always
|
||||||
pf-redis:
|
pf-redis:
|
||||||
image: redis:6.2.5-alpine3.14
|
image: redis:6.2.5-alpine3.14
|
||||||
|
|
@ -34,7 +34,7 @@ services:
|
||||||
command: ["sh","-c","composer install && php cmd.php --tcpHost 0.0.0.0"]
|
command: ["sh","-c","composer install && php cmd.php --tcpHost 0.0.0.0"]
|
||||||
hostname: socket
|
hostname: socket
|
||||||
volumes:
|
volumes:
|
||||||
- ${path}/websocket:/app
|
- ${PROJECT_ROOT}/websocket:/app
|
||||||
networks:
|
networks:
|
||||||
pf:
|
pf:
|
||||||
aliases:
|
aliases:
|
||||||
|
|
@ -64,9 +64,9 @@ services:
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: true
|
disable: true
|
||||||
volumes:
|
volumes:
|
||||||
- ${path}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
|
- ${PROJECT_ROOT}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
|
||||||
- ${path}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
|
- ${PROJECT_ROOT}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
|
||||||
- ${path}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
|
- ${PROJECT_ROOT}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
|
||||||
depends_on:
|
depends_on:
|
||||||
- pfdb
|
- pfdb
|
||||||
- pf-redis
|
- pf-redis
|
||||||
|
|
@ -84,17 +84,17 @@ services:
|
||||||
- "--entrypoints.websecure.address=:443"
|
- "--entrypoints.websecure.address=:443"
|
||||||
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
|
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
|
||||||
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
|
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
|
||||||
|
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
|
||||||
# Remove below line when ready for production
|
# Remove below line when ready for production
|
||||||
- "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
- "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
- "--certificatesresolvers.letsencrypt.acme.email=MYEMAIL@someemailprobablygmail.com"
|
- "--certificatesresolvers.letsencrypt.acme.email=MYEMAIL@someemailprobablygmail.com"
|
||||||
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
- "${path}/letsencrypt:/letsencrypt"
|
- "${PROJECT_ROOT}/letsencrypt:/letsencrypt"
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0673759a8d1cd18a0a14ed871d3754011cef3633
|
Subproject commit 305c9009e223ff20e60a4a7746c503994e8f3baa
|
||||||
Loading…
Add table
Add a link
Reference in a new issue