Skip to content

Commit 80b6aca

Browse files
committed
v2.0 finalizations
1 parent f5292e4 commit 80b6aca

File tree

6 files changed

+57
-18
lines changed

6 files changed

+57
-18
lines changed

config/defaults/settings.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,11 @@ brand:
833833

834834
### Site Disclaimer
835835
#
836-
# Environment variable override: PWP__BRAND__DISCLAIMER='Use at own use risk.'
837-
# disclaimer: 'This is a dummy disclaimer and should not be considered legally binding or taken seriously in any way. The content provided here is for entertainment and illustrative purposes only. Any resemblance to actual disclaimers is purely coincidental. We do not endorse or encourage the use of this disclaimer for any real-world applications, and we strongly advise consulting a legal professional for creating legitimate and appropriate disclaimers for your specific needs. By reading this disclaimer, you agree not to hold us responsible for any confusion, amusement, or bewilderment it may cause. This disclaimer has no legal validity, and any attempt to rely on it for legal, financial, or any other serious matters is ill-advised. Please use disclaimers responsibly and in accordance with applicable laws and regulations.'
836+
# Optional short text shown in the footer (centered, muted). Leave unset to hide.
837+
#
838+
# Environment variable override: PWP__BRAND__DISCLAIMER='Use subject to org terms. Security: contact your CSO.'
839+
#
840+
# disclaimer: 'Use of this instance is subject to your organization terms of service. Report misuse or security concerns to your CSO or IT security team.'
838841

839842
### Show Footer Menu Toggle
840843
#

config/settings.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,11 @@ brand:
833833

834834
### Site Disclaimer
835835
#
836-
# Environment variable override: PWP__BRAND__DISCLAIMER='Use at own use risk.'
837-
# disclaimer: 'This is a dummy disclaimer and should not be considered legally binding or taken seriously in any way. The content provided here is for entertainment and illustrative purposes only. Any resemblance to actual disclaimers is purely coincidental. We do not endorse or encourage the use of this disclaimer for any real-world applications, and we strongly advise consulting a legal professional for creating legitimate and appropriate disclaimers for your specific needs. By reading this disclaimer, you agree not to hold us responsible for any confusion, amusement, or bewilderment it may cause. This disclaimer has no legal validity, and any attempt to rely on it for legal, financial, or any other serious matters is ill-advised. Please use disclaimers responsibly and in accordance with applicable laws and regulations.'
836+
# Optional short text shown in the footer (centered, muted). Leave unset to hide.
837+
#
838+
# Environment variable override: PWP__BRAND__DISCLAIMER='Use subject to org terms. Security: contact your CSO.'
839+
#
840+
# disclaimer: 'Use of this instance is subject to your organization terms of service. Report misuse or security concerns to your CSO or IT security team.'
838841

839842
### Show Footer Menu Toggle
840843
#

containers/docker/entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ else
5555
fi
5656
echo ""
5757

58+
# v2 release notice (upgrading from 1.x)
59+
echo "Password Pusher v2 — upgrading from 1.x? See: https://github.com/pglombardo/PasswordPusher/blob/master/UPGRADE-2.0.md"
60+
echo ""
61+
5862
# Persist DATABASE_URL and RAILS_ENV for shell access (skip when running as arbitrary user, e.g. OpenShift)
5963
# Create .env.production if missing (no-op if we lack permission; avoids exit due to set -e)
6064
touch /opt/PasswordPusher/.env.production 2>/dev/null || true
Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,54 @@
1-
# For an explanation of these settings, see:
2-
# https://docs.pwpush.com/docs/config-strategies/
3-
#
4-
export PWP__ENABLE_LOGINS=true
1+
# Password Pusher 2.0 — example env for pwpush-and-nginx.
2+
# Full option list and defaults: docker-compose.yml in repo root.
3+
# Upgrading from 1.x: https://github.com/pglombardo/PasswordPusher/blob/master/UPGRADE-2.0.md
4+
# Config strategies: https://docs.pwpush.com/docs/config-strategies/
5+
6+
# --- Features (2.0 defaults; set false to disable) ---
7+
export PWP__ENABLE_URL_PUSHES=true
8+
export PWP__ENABLE_FILE_PUSHES=true
9+
export PWP__ENABLE_QR_PUSHES=true
10+
export PWP__ALLOW_ANONYMOUS=true
11+
12+
# --- Authentication (2.0: logins always on; tune with these) ---
13+
# export PWP__DISABLE_SIGNUPS=false
14+
# export PWP__DISABLE_LOGINS=false
15+
# Enable if you use signup confirmation, forgot password, unlock (requires working SMTP):
16+
export PWP__ENABLE_USER_ACCOUNT_EMAILS=true
17+
18+
# --- Mail ---
519
export PWP__MAIL__RAISE_DELIVERY_ERRORS=true
620
export PWP__MAIL__SMTP_ADDRESS=smtp.mydomain.com
721
export PWP__MAIL__SMTP_PORT=587
822
export PWP__MAIL__SMTP_USER_NAME=smtp-username
923
export PWP__MAIL__SMTP_PASSWORD=smtp-password
1024
export PWP__MAIL__SMTP_AUTHENTICATION=plain
11-
export PWP__MAIL__SMTP_STARTTLS=true
25+
export PWP__MAIL__SMTP_ENABLE_STARTTLS_AUTO=true
1226
export PWP__MAIL__SMTP_OPEN_TIMEOUT=10
1327
export PWP__MAIL__SMTP_READ_TIMEOUT=10
28+
export PWP__MAIL__MAILER_SENDER='"Your Name" <name@mydomain.com>'
29+
30+
# --- Deployment & URL ---
1431
export PWP__HOST_DOMAIN=localhost.dev
1532
export PWP__HOST_PROTOCOL=https
16-
export PWP__MAIL__MAILER_SENDER='"Your Name" <name@mydomain.com>'
1733

1834
export PWP__SHOW_VERSION=false
1935

20-
export PWP__ENABLE_FILE_PUSHES=true
21-
36+
# --- Push: files (2.0 compose uses FILES__STORAGE) ---
37+
export PWP__FILES__STORAGE=local
2238
export PWP__FILES__EXPIRE_AFTER_DAYS_DEFAULT=2
2339
export PWP__FILES__EXPIRE_AFTER_DAYS_MAX=7
2440
export PWP__FILES__EXPIRE_AFTER_VIEWS_DEFAULT=5
2541
export PWP__FILES__EXPIRE_AFTER_VIEWS_MAX=10
2642
export PWP__FILES__RETRIEVAL_STEP_DEFAULT=true
2743

28-
export PWP__ENABLE_URL_PUSHES=true
44+
# --- Branding ---
2945
export PWP__BRAND__TITLE="Acme Corp"
3046
export PWP__BRAND__TAGLINE="Generic is Not Good Enough"
31-
export PWP__BRAND__DISCLAIMER="This is a dummy disclaimer and should not be considered legally binding or taken seriously in any way."
47+
export PWP__BRAND__DISCLAIMER="Use subject to org terms. Security: contact your CSO."
3248
export PWP__BRAND__SHOW_FOOTER_MENU=false
3349
export PWP__BRAND__LIGHT_LOGO=https://pwpush.fra1.cdn.digitaloceanspaces.com/dev%2Facme-logo.jpg
3450
export PWP__BRAND__DARK_LOGO=https://pwpush.fra1.cdn.digitaloceanspaces.com/dev%2Facme-logo.jpg
3551

52+
# --- Logging ---
3653
export PWP__LOG_TO_STDOUT=true
3754
export PWP__LOG_LEVEL=info

containers/helm/values.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@ podLabels:
1414
app: "pwpush"
1515

1616
env: {}
17-
# PWP__ENABLE_LOGINS: true
18-
# PWP__ENABLE_FILE_PUSHES: true
19-
# PWP__FILES__STORAGE: local
17+
# Optional env map for the pod (2.0). See repo docker-compose.yml and:
18+
# https://docs.pwpush.com/docs/self-hosted-configuration/
19+
# Common examples:
20+
# PWPUSH_MASTER_KEY: "" # production: set via Secret; generate at /pages/generate_key
21+
# SECRET_KEY_BASE: "" # persist sessions across restarts
22+
# PWP__ALLOW_ANONYMOUS: "true"
23+
# PWP__DISABLE_SIGNUPS: "false"
24+
# PWP__DISABLE_LOGINS: "false"
25+
# PWP__ENABLE_USER_ACCOUNT_EMAILS: "false" # true + SMTP for signup/reset/unlock mail
26+
# PWP__ENABLE_URL_PUSHES: "true"
27+
# PWP__ENABLE_FILE_PUSHES: "true"
28+
# PWP__ENABLE_QR_PUSHES: "true"
29+
# PWP__FILES__STORAGE: "local" # or s3 / gcs / azure per docs
30+
# PWP__LOG_TO_STDOUT: "true"
2031

2132
livenessProbe:
2233
httpGet:

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ x-env: &x-env
135135

136136
services:
137137
pwpush:
138-
image: docker.io/pglombardo/pwpush:2.0.0-a
138+
# "latest" is mostly reliable; use "stable" for well tested releases.
139+
image: docker.io/pglombardo/pwpush:latest
139140
restart: unless-stopped
140141
ports:
141142
- "80:80"

0 commit comments

Comments
 (0)