-
Notifications
You must be signed in to change notification settings - Fork 3
SSL cert is not valid after activating custom domain #26
Copy link
Copy link
Open
Description
TLDR;
Custom domain features sometimes run into lock issues when obtaining cert
Pageship endpoint
PAGESHIP_API=https://api.pages.oursky.app
pageship.toml
[app]
id = "mockuphone-prod"
team = [
# Allow GitHub Actions in your repo to deploy
{ gitHubRepositoryActions="oursky/mockuphone.com", access="deployer" },
{ gitHubRepositoryActions="pkong-ds/mockuphone.com", access="deployer" }
]
[app.deployments]
# ttl = "24h"
# access = []
[[app.sites]]
name = "main"
[[app.domains]]
domain = "mockuphone.com"
site = "main"
[site]
public = "dist"
# access = []Github Account: pkong-ds
Error logs
Log 1
Timestamp around 2024-06-21T21:29:00, HKT, ± 30 mins
➜ PAGESHIP_API=https://api.pages.oursky.app/ ENV=production make deploy
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
INFO Collecting files...
INFO 1679 files found. Tarball size: 271 MB
INFO Setting up deployment 'tevazzy'...
ERROR failed to setup deployment: i/o timeout
make: *** [deploy] Error 1
Log 2
Timestamp around 2024-06-21T21:29:00, HKT, ± 30 mins
This log appeared after log 1
➜ PAGESHIP_API=https://api.pages.oursky.app/ ENV=production make deploy
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
ERROR failed to configure app: connect to server: websocket.Dial wss://api.pages.oursky.app/api/v1/auth/github-ssh: dial tcp: lookup api.pages.oursky.app on 192.168.65.7:53: read udp 172.17.0.2:42794->192.168.65.7:53: i/o timeout
make: *** [deploy] Error 1
make deploy script
ifeq ($(GITHUB_REF_NAME),production)
ENV ?= $(GITHUB_REF_NAME)
else
ENV ?= staging
endif
ifeq (${ACTIONS_ID_TOKEN_REQUEST_URL},)
# interactive mode
ARGS=-it
else
ARGS=-e ACTIONS_ID_TOKEN_REQUEST_URL=${ACTIONS_ID_TOKEN_REQUEST_URL} \
-e ACTIONS_ID_TOKEN_REQUEST_TOKEN=${ACTIONS_ID_TOKEN_REQUEST_TOKEN}
DEPLOYMENT=github-action
endif
pageship=docker run --rm \
-e PAGESHIP_API="${PAGESHIP_API}" \
-v "${PWD}/pageship_config/:/root/.config/pageship/" \
-v "${PWD}:/var/pageship" \
${ARGS} \
ghcr.io/oursky/pageship:v0.5.1
.PHONY: deploy
deploy:
@if [ "${DEPLOYMENT}" = "github-action" ] ||\
[ -e ${PWD}/pageship_config/id_rsa ] ||\
[ -e ${PWD}/pageship_config/client.json ]; then \
cp pageship.${ENV}.toml pageship.toml; \
${pageship} deploy /var/pageship --site main -y; \
else \
echo "Essential config not found. Please run \"make pageship_config\" before deployment"; \
fiReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels