Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update self-host kube example to Huly v424 #126

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .template.huly.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HULY_VERSION=v0.6.411
HULY_VERSION=v0.6.424
DOCKER_NAME=huly

# The address of the host or server from which you will access your Huly instance.
Expand Down
24 changes: 24 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Huly Migration

This document describes the changes required to update Huly from one version to another. Most of updates require updating Docker containers versions.
Though, some updates may require updating other configuration options. In this case, you should review the updated configuration options and update them accordingly.

## v0.6.424

Web-push keys have been moved from the `front` service to the `ses` service. If you are using the `ses` service, you will need to update the configuration:

```yaml
front:
...
environment:
...
# Remove the following lines
# - PUSH_PUBLIC_KEY=your public key
# - PUSH_PRIVATE_KEY=your private key
ses:
...
environment:
...
# Add the following lines
- PUSH_PUBLIC_KEY=your public key
- PUSH_PRIVATE_KEY=your private key
```

## v0.6.411

No changes required.
Expand Down
47 changes: 25 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ sudo apt-get install npm

Install web-push using npm

```
```bash
sudo npm install -g web-push
```

Generate VAPID Keys. Run the following command to generate a VAPID key pair:

```
```bash
web-push generate-vapid-keys
```

It will generate both keys that looks like this:

```
```bash
=======================================

Public Key:
Expand All @@ -92,9 +92,9 @@ asdfsadfasdfsfd

Keep these keys secure, as you will need them to set up your push notification service on the server.

Add these keys into `compose.yaml` in section `services:front:environment`:
Add these keys into `compose.yaml` in section `services:ses:environment`:

```
```yaml
- PUSH_PUBLIC_KEY=your public key
- PUSH_PRIVATE_KEY=your private key
```
Expand All @@ -105,21 +105,22 @@ Add these keys into `compose.yaml` in section `services:front:environment`:

2. [Create new policy](https://us-east-1.console.aws.amazon.com/iam/home?region=eu-central-1#/policies/create) with
following permissions:
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ses:SendEmail",
"ses:SendRawEmail"
],
"Resource": "*"
}
]
}
```

```yaml
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ses:SendEmail",
"ses:SendRawEmail"
],
"Resource": "*"
}
]
}
```

3. [Create separate IAM user](https://us-east-1.console.aws.amazon.com/iam/home?region=eu-central-1#/users/create) for
SES API access. Assign previously created policy to this user during creation.
Expand All @@ -128,14 +129,16 @@ Add these keys into `compose.yaml` in section `services:front:environment`:

```yaml
ses:
image: hardcoreeng/ses:v0.6.411
image: hardcoreeng/ses:v0.6.424
container_name: ses
expose:
- 3335
environment:
- SOURCE=<EMAIL_FROM>
- ACCESS_KEY=<SES_ACCESS_KEY>
- SECRET_KEY=<SES_SECRET_KEY>
- PUSH_PUBLIC_KEY=<PUSH_PUBLIC_KEY>
- PUSH_PRIVATE_KEY=<PUSH_PRIVATE_KEY>
- REGION=<SES_REGION>
- PORT=3335
restart: unless-stopped
Expand Down Expand Up @@ -169,7 +172,7 @@ self-hosted Huly, perform the following steps:

```yaml
love:
image: hardcoreeng/love:v0.6.411
image: hardcoreeng/love:v0.6.424
container_name: love
ports:
- 8096:8096
Expand Down
2 changes: 1 addition & 1 deletion kube/account/account-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
configMapKeyRef:
name: huly-config
key: TRANSACTOR_URL
image: hardcoreeng/account:v0.6.411
image: hardcoreeng/account:v0.6.424
name: account
ports:
- containerPort: 3000
Expand Down
2 changes: 1 addition & 1 deletion kube/collaborator/collaborator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
secretKeyRef:
name: huly-secret
key: SERVER_SECRET
image: hardcoreeng/collaborator:v0.6.411
image: hardcoreeng/collaborator:v0.6.424
name: collaborator
ports:
- containerPort: 3078
Expand Down
2 changes: 1 addition & 1 deletion kube/front/front-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
value: http://stats
- name: DESKTOP_UPDATES_CHANNEL
value: selfhost
image: hardcoreeng/front:v0.6.411
image: hardcoreeng/front:v0.6.424
name: front
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion kube/fulltext/fulltext-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
value: http://account
- name: STATS_URL
value: http://stats
image: hardcoreeng/fulltext:v0.6.411
image: hardcoreeng/fulltext:v0.6.424
name: fulltext
ports:
- containerPort: 4700
Expand Down
2 changes: 1 addition & 1 deletion kube/rekoni/rekoni-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: rekoni
spec:
containers:
- image: hardcoreeng/rekoni-service:v0.6.411
- image: hardcoreeng/rekoni-service:v0.6.424
name: rekoni
env:
- name: SECRET
Expand Down
2 changes: 1 addition & 1 deletion kube/stats/stats-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: stats
spec:
containers:
- image: hardcoreeng/stats:v0.6.411
- image: hardcoreeng/stats:v0.6.424
name: stats
env:
- name: PORT
Expand Down
2 changes: 1 addition & 1 deletion kube/transactor/transactor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
secretKeyRef:
name: huly-secret
key: SERVER_SECRET
image: hardcoreeng/transactor:v0.6.411
image: hardcoreeng/transactor:v0.6.424
name: transactor
ports:
- containerPort: 3333
Expand Down
2 changes: 1 addition & 1 deletion kube/workspace/workspace-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
secretKeyRef:
name: huly-secret
key: SERVER_SECRET
image: hardcoreeng/workspace:v0.6.411
image: hardcoreeng/workspace:v0.6.424
name: workspace
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

HULY_VERSION="v0.6.411"
HULY_VERSION="v0.6.424"
DOCKER_NAME="huly"
CONFIG_FILE="huly.conf"

Expand Down
2 changes: 1 addition & 1 deletion traefik/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -z "$LETSENCRYPT_EMAIL" ]; then
exit 1
fi

export HULY_VERSION="v0.6.411"
export HULY_VERSION="v0.6.424"
export HULY_SECRET="secret"
export SERVER_ADDRESS=$DOMAIN_NAME
export LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
Expand Down