Fixes letsencrypt cert storage and updates env

This commit is contained in:
Sam ONeill 2021-10-25 07:19:55 +13:00
parent dac7e4adf5
commit d3b9ef5858
9 changed files with 22 additions and 21 deletions

View file

@ -1,4 +1,4 @@
path=""
PROJECT_ROOT=""
CONTAINER_NAME="pf"
DOMAIN=""
APP_PASSWORD=""

View file

@ -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
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
RUN mkdir -p /etc/nginx/sites_enabled/
COPY static/nginx/site.conf /etc/nginx/templateSite.conf
COPY static/nginx/site.conf /etc/nginx/sites_enabled/templateSite.conf
# Configure PHP-FPM
COPY static/php/fpm-pool.conf /etc/php7/php-fpm.d/zzz_custom.conf

View file

@ -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.**
```shell
path="" # The path of the cloned repo
PROJECT_ROOT="" # The path of the cloned repo
CONTAINER_NAME="pf" # docker container name prefix
DOMAIN="" # The domain you will be using
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_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
Recommended options to change:

View file

@ -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:
; e.g. public/js/vX.X.X/app.js
; Syntax: String (current version)
; Default: v2.1.3
VERSION = v2.1.3
; Default: v2.1.4
VERSION = v2.1.4
; Contact information [optional]
; Shown on 'licence', 'contact' page.

View file

@ -4,4 +4,3 @@ MODULES_ENABLED = 1
[PLUGIN.MODULES]
DEMO = ./app/ui/module/demo
EMPTY = ./app/ui/module/empty
ZKILLTEST = ./app/ui/module/global_killboard

View file

@ -12,7 +12,7 @@ services:
- "${CONTAINER_NAME}db"
volumes:
- 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
pf-redis:
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"]
hostname: socket
volumes:
- ${path}/websocket:/app
- ${PROJECT_ROOT}/websocket:/app
networks:
pf:
aliases:
@ -63,9 +63,9 @@ services:
healthcheck:
disable: true
volumes:
- ${path}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
- ${path}/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/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
- ${PROJECT_ROOT}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
- ${PROJECT_ROOT}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
depends_on:
- pfdb
- pf-redis

View file

@ -37,6 +37,7 @@ DB_CCP_PASS = $MYSQL_PASSWORD
CCP_SSO_URL = https://login.eveonline.com
CCP_SSO_CLIENT_ID = $CCP_SSO_CLIENT_ID
CCP_SSO_SECRET_KEY = $CCP_SSO_SECRET_KEY
CCP_SSO_JWK_CLAIM = login.eveonline.com
CCP_SSO_DOWNTIME = 11:00
; CCP ESI API

View file

@ -12,7 +12,7 @@ services:
- "${CONTAINER_NAME}db"
volumes:
- 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
pf-redis:
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"]
hostname: socket
volumes:
- ${path}/websocket:/app
- ${PROJECT_ROOT}/websocket:/app
networks:
pf:
aliases:
@ -64,9 +64,9 @@ services:
healthcheck:
disable: true
volumes:
- ${path}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
- ${path}/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/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
- ${PROJECT_ROOT}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
- ${PROJECT_ROOT}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
depends_on:
- pfdb
- pf-redis
@ -84,17 +84,17 @@ services:
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
# Remove below line when ready for production
- "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.letsencrypt.acme.email=MYEMAIL@someemailprobablygmail.com"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "${path}/letsencrypt:/letsencrypt"
- "${PROJECT_ROOT}/letsencrypt:/letsencrypt"
networks:
- web
restart: always

@ -1 +1 @@
Subproject commit 0673759a8d1cd18a0a14ed871d3754011cef3633
Subproject commit 305c9009e223ff20e60a4a7746c503994e8f3baa