Skip to content

Commit 58586a9

Browse files
authored
Merge pull request #30 from small-hack/features/add-more-undocumented-env-vars
Features/add more undocumented env vars
2 parents 748cab3 + 4072940 commit 58586a9

File tree

4 files changed

+90
-6
lines changed

4 files changed

+90
-6
lines changed

charts/pixelfed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.13.0
18+
version: 0.14.0
1919

2020
# This is the version number of the application being deployed.
2121
# renovate:image=ghcr.io/mattlqx/docker-pixelfed

charts/pixelfed/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pixelfed
22

3-
![Version: 0.13.0](https://img.shields.io/badge/Version-0.13.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
3+
![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
44

55
A Helm chart for deploying Pixelfed on Kubernetes
66

@@ -74,6 +74,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
7474
| pixelfed.account_deletion | bool | `true` | Enable account deletion (may be a requirement in some jurisdictions) |
7575
| pixelfed.activity_pub.enabled | bool | `false` | enable ActivityPub |
7676
| pixelfed.activity_pub.inbox | bool | `false` | |
77+
| pixelfed.activity_pub.logger_enabled | bool | `false` | |
7778
| pixelfed.activity_pub.outbox | bool | `false` | |
7879
| pixelfed.activity_pub.remote_follow | bool | `false` | |
7980
| pixelfed.activity_pub.sharedinbox | bool | `false` | |
@@ -87,16 +88,28 @@ A Helm chart for deploying Pixelfed on Kubernetes
8788
| pixelfed.app.name | string | `"Pixelfed"` | The name of your server/instance |
8889
| pixelfed.app.url | string | `"https://localhost"` | change this to the domain of your pixelfed instance |
8990
| pixelfed.atom_feeds | string | `"true"` | https://docs.pixelfed.org/technical-documentation/config/#atom_feeds |
91+
| pixelfed.banned_usernames | string | `""` | not entirely sure if this is a list of banned usernames or text to display instead of banned usernames |
92+
| pixelfed.covid.enable_label | bool | `true` | |
93+
| pixelfed.covid.label_org | string | `"visit the WHO website"` | |
94+
| pixelfed.covid.label_url | string | `"https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public"` | |
9095
| pixelfed.custom_emoji | bool | `false` | Enable custom emojis |
96+
| pixelfed.custom_emoji_max_size | int | `2000000` | max size for custom emojis, in... bytes? |
9197
| pixelfed.db.apply_new_migrations_automatically | bool | `false` | |
9298
| pixelfed.db.connection | string | `"pgsql"` | options: sqlite mysql pgsql sqlsrv |
9399
| pixelfed.enable_config_cache | bool | `true` | Enable the config cache to allow you to manage settings via the admin dashboard |
94100
| pixelfed.enforce_email_verification | bool | `true` | Enforce email verification |
95101
| pixelfed.exp_emc | bool | `true` | Experimental Configuration |
102+
| pixelfed.exp_loops | bool | `false` | exp loops (as in loops video? 🤷 |
103+
| pixelfed.filesystem.cloud | string | `"s3"` | Many applications store files both locally and in the cloud. For this reason, you may specify a default “cloud” driver here. This driver will be bound as the Cloud disk implementation in the container. |
104+
| pixelfed.filesystem.driver | string | `"local"` | |
96105
| pixelfed.force_https_urls | bool | `true` | Force https url generation |
106+
| pixelfed.horizon.dark_mode | bool | `false` | darkmode for the web interface in the admin panel |
107+
| pixelfed.horizon.prefix | string | `"horizon-"` | prefix will be used when storing all Horizon data in Redis |
108+
| pixelfed.image_driver | string | `"gd"` | library to process images. options: "gd" (default), "imagick" |
97109
| pixelfed.image_quality | int | `80` | Set the image optimization quality, between 1-100. Lower uses less space, higher more quality |
98110
| pixelfed.instance.contact_email | string | `""` | The public contact email for your server |
99111
| pixelfed.instance.contact_form | bool | `false` | enable the instance contact form |
112+
| pixelfed.instance.contact_max_per_day | string | `""` | instance contact max per day |
100113
| pixelfed.instance.cur_reg | bool | `false` | Enable Curated Registration |
101114
| pixelfed.instance.description | string | `"Pixelfed - Photo sharing for everyone"` | your server description |
102115
| pixelfed.instance.discover_public | bool | `false` | Enable public access to the Discover feature |
@@ -110,6 +123,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
110123
| pixelfed.instance.reports.email_enabled | bool | `false` | Send a report email to the admin account for new autospam/reports |
111124
| pixelfed.instance.show_peers | bool | `false` | Enable the api/v1/peers API endpoint |
112125
| pixelfed.laravel.log_channel | string | `"stack"` | Laravel log channel. Pixelfed's default, 'stack', sends logs to the default Laravel logfile. 'stderr' allows Kubernetes to capture these logs |
126+
| pixelfed.laravel.log_level | string | `"debug"` | logging level |
113127
| pixelfed.mail.driver | string | `"smtp"` | options: "smtp" (default), "sendmail", "mailgun", "mandrill", "ses" "sparkpost", "log", "array" |
114128
| pixelfed.mail.encryption | string | `"tls"` | mail server encryption type |
115129
| pixelfed.mail.existingSecret | string | `""` | name of an existing Kubernetes Secret for mail credentials |
@@ -119,7 +133,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
119133
| pixelfed.mail.existingSecretKeys.username | string | `""` | key in existing Kubernetes Secret for username. If set, ignores mail.username |
120134
| pixelfed.mail.from_address | string | `"[email protected]"` | address to use for sending emails |
121135
| pixelfed.mail.from_name | string | `"Pixelfed"` | name to use for sending emails |
122-
| pixelfed.mail.host | string | `"smtp.mailtrap.io"` | |
136+
| pixelfed.mail.host | string | `"smtp.mailtrap.io"` | mail server hostname |
123137
| pixelfed.mail.password | string | `""` | mail server password |
124138
| pixelfed.mail.port | int | `2525` | mail server port |
125139
| pixelfed.mail.username | string | `""` | mail server username |
@@ -130,6 +144,8 @@ A Helm chart for deploying Pixelfed on Kubernetes
130144
| pixelfed.max_caption_length | int | `1000` | The max post caption length |
131145
| pixelfed.max_name_length | int | `32` | The max user display name length |
132146
| pixelfed.max_photo_size | int | `15000` | The max photo/video size in KB |
147+
| pixelfed.media_delete_local_after_cloud | bool | `true` | delete local files after saving to the cloud |
148+
| pixelfed.media_types | string | `"image/jpeg,image/png,image/gif"` | types of media to allow |
133149
| pixelfed.min_password_length | int | `16` | The min password length |
134150
| pixelfed.nodeinfo | string | `"true"` | https://docs.pixelfed.org/technical-documentation/config/#nodeinfo |
135151
| pixelfed.oauth_enabled | bool | `true` | Enable oAuth support, required for mobile/3rd party apps |

charts/pixelfed/templates/configmap_env.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ data:
1414
APP_DOMAIN: {{ . }}
1515
{{- end }}
1616

17+
EXP_LOOPS: {{ .Values.pixelfed.exp_loops }}
18+
1719
# registration related
1820
OPEN_REGISTRATION: {{ .Values.pixelfed.open_registration | quote }}
1921
ENFORCE_EMAIL_VERIFICATION: {{ .Values.pixelfed.enforce_email_verification | quote }}
@@ -23,6 +25,8 @@ data:
2325

2426
# not sure where to put this
2527
CUSTOM_EMOJI: {{ .Values.pixelfed.custom_emoji | quote }}
28+
CUSTOM_EMOJI_MAX_SIZE: {{ .Values.pixelfed.custom_emoji | quote }}
29+
MEDIA_TYPES: {{ .Values.pixelfed.media_types }}
2630

2731
# limits
2832
MIN_PASSWORD_LENGTH: {{ .Values.pixelfed.min_password_length | quote }}
@@ -40,6 +44,7 @@ data:
4044
# instance config
4145
INSTANCE_DESCRIPTION: {{ .Values.pixelfed.instance.description | quote }}
4246
INSTANCE_CONTACT_FORM: {{ .Values.pixelfed.instance.contact_form | quote }}
47+
INSTANCE_CONTACT_MAX_PER_DAY: {{ .Values.pixelfed.instance.contact_max_per_day | quote }}
4348
INSTANCE_DISCOVER_PUBLIC: {{ .Values.pixelfed.instance.discover_public | quote }}
4449
INSTANCE_PUBLIC_HASHTAGS: {{ .Values.pixelfed.instance.public_hashtags | quote }}
4550
{{- with .Values.pixelfed.instance.contact_email }}
@@ -77,14 +82,31 @@ data:
7782
QUEUE_DRIVER: "redis"
7883
BROADCAST_DRIVER: "log"
7984
LOG_CHANNEL: {{ .Values.pixelfed.laravel.log_channel }}
80-
HORIZON_PREFIX: "horizon-"
85+
LOG_LEVEL: {{ .Values.pixelfed.laravel.log_level }}
86+
87+
# horizon
88+
HORIZON_PREFIX: {{ .Values.pixelfed.horizon.prefix | quote }}
89+
HORIZON_DARKMODE: {{ .Values.pixelfed.horizon.darkmode | quote }}
90+
91+
# filesystem
92+
FILESYSTEM_DRIVER: {{ .Values.pixelfed.filesystem.driver }}
93+
FILESYSTEM_CLOUD: {{ .Values.pixelfed.filesystem.cloud }}
94+
MEDIA_DELETE_LOCAL_AFTER_CLOUD: {{ .Values.pixelfed.media_delete_local_after_cloud }}
95+
96+
# covid
97+
ENABLE_COVID_LABEL: {{ .Values.pixelfed.covid.enable_label }}
98+
COVID_LABEL_URL: {{ .Values.pixelfed.covid.label_url }}
99+
COVID_LABEL_ORG: {{ .Values.pixelfed.covid.label_org }}
100+
101+
BANNED_USERNAMES: {{ .Values.pixelfed.banned_usernames }}
81102

82103
# activity pub
83104
ACTIVITY_PUB: {{ .Values.pixelfed.activity_pub.enabled | quote }}
84105
AP_REMOTE_FOLLOW: {{ .Values.pixelfed.activity_pub.remote_follow | quote }}
85106
AP_SHAREDINBOX: {{ .Values.pixelfed.activity_pub.sharedinbox | quote }}
86107
AP_INBOX: {{ .Values.pixelfed.activity_pub.inbox | quote }}
87108
AP_OUTBOX: {{ .Values.pixelfed.activity_pub.outbox | quote }}
109+
AP_LOGGER_ENABLED: {{ .Values.pixelfed.activity_pub.logger_enabled | quote }}
88110

89111
# mail
90112
MAIL_DRIVER: "{{ .Values.pixelfed.mail.driver }}"

charts/pixelfed/values.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,25 @@ pixelfed:
292292
# -- Automatically run [artisan migrate --force] if new migrations are detected.
293293
apply_new_migrations_automatically: false
294294

295+
filesystem:
296+
# -- Many applications store files both locally and in the cloud.
297+
# For this reason, you may specify a default “cloud” driver here.
298+
# This driver will be bound as the Cloud disk implementation in the container.
299+
cloud: "s3"
300+
driver: "local"
301+
302+
covid:
303+
enable_label: true
304+
label_url: "https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public"
305+
label_org: "visit the WHO website"
306+
307+
# -- not entirely sure if this is a list of banned usernames or text to
308+
# display instead of banned usernames
309+
banned_usernames: ""
310+
311+
# -- delete local files after saving to the cloud
312+
media_delete_local_after_cloud: true
313+
295314
# -- timezone for docker container
296315
timezone: "europe/amsterdam"
297316

@@ -307,6 +326,13 @@ pixelfed:
307326
# -- trusted proxies
308327
trusted_proxies: "*"
309328

329+
# horizon - for interfacing with redis
330+
horizon:
331+
# -- prefix will be used when storing all Horizon data in Redis
332+
prefix: "horizon-"
333+
# -- darkmode for the web interface in the admin panel
334+
dark_mode: false
335+
310336
# app specific settings
311337
app:
312338
# -- This key is used by the Illuminate encrypter service and should
@@ -335,6 +361,8 @@ pixelfed:
335361
laravel:
336362
# -- Laravel log channel. Pixelfed's default, 'stack', sends logs to the default Laravel logfile. 'stderr' allows Kubernetes to capture these logs
337363
log_channel: stack
364+
# -- logging level
365+
log_level: "debug"
338366

339367
# -- Enable open registration for new accounts
340368
open_registration: true
@@ -357,6 +385,12 @@ pixelfed:
357385
# -- Enable custom emojis
358386
custom_emoji: false
359387

388+
# -- max size for custom emojis, in... bytes?
389+
custom_emoji_max_size: 2000000
390+
391+
# -- types of media to allow
392+
media_types: "image/jpeg,image/png,image/gif"
393+
360394
# -- Enable the config cache to allow you to manage settings via the admin dashboard
361395
enable_config_cache: true
362396

@@ -387,18 +421,26 @@ pixelfed:
387421
# -- Force https url generation
388422
force_https_urls: true
389423

424+
# -- exp loops (as in loops video? 🤷
425+
exp_loops: false
426+
427+
# -- library to process images. options: "gd" (default), "imagick"
428+
image_driver: "gd"
429+
390430
# your whole instance, or server, settings
391431
instance:
392432
# -- your server description
393433
description: "Pixelfed - Photo sharing for everyone"
394-
# -- enable the instance contact form
395-
contact_form: false
396434
# -- Enable public access to the Discover feature
397435
discover_public: false
398436
# -- Allow anonymous access to hashtag feeds
399437
public_hashtags: false
438+
# -- enable the instance contact form
439+
contact_form: false
400440
# -- The public contact email for your server
401441
contact_email: ""
442+
# -- instance contact max per day
443+
contact_max_per_day: ""
402444
# -- Enable the profile embed feature
403445
profile_embeds: true
404446
# -- Enable the post embed feature
@@ -457,6 +499,8 @@ pixelfed:
457499
inbox: false
458500
outbox: false
459501
sharedinbox: false
502+
# activity pub logger?
503+
logger_enabled: false
460504

461505
###########################################################
462506
# Federation
@@ -475,6 +519,7 @@ pixelfed:
475519
# -- options: "smtp" (default), "sendmail", "mailgun", "mandrill", "ses"
476520
# "sparkpost", "log", "array"
477521
driver: smtp
522+
# -- mail server hostname
478523
host: smtp.mailtrap.io
479524
# -- mail server port
480525
port: 2525
@@ -491,6 +536,7 @@ pixelfed:
491536

492537
# -- name of an existing Kubernetes Secret for mail credentials
493538
existingSecret: ""
539+
# keys in existing secret
494540
existingSecretKeys:
495541
# -- key in existing Kubernetes Secret for host. If set, ignores mail.host
496542
host: ""

0 commit comments

Comments
 (0)