photostructure 2026.10.0 → 2026.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -1
- package/README.md +106 -2
- package/VERSION.json +6 -6
- package/bin/auth.js +855 -0
- package/bin/bootstrap.js +3 -3
- package/bin/docker-env.js +5 -5
- package/bin/doctor.js +257 -269
- package/bin/fix.js +258 -267
- package/bin/info.js +247 -257
- package/bin/list.js +248 -261
- package/bin/logcat.js +86 -159
- package/bin/logtail.js +85 -158
- package/bin/main.js +133 -116
- package/bin/photostructure.js +5 -5
- package/bin/sync.js +304 -309
- package/bin/web.js +561 -327
- package/bin/worker.js +73 -83
- package/data/auth-schema.json +263 -0
- package/data/auth-schema.sql +75 -0
- package/data/migrations/auth/20261126_sign_in.sql +133 -0
- package/data/migrations/models/20261021_clear_rejected_files.sql +6 -0
- package/data/migrations/models/20261022_drop_asset_file_image_data_hash.sql +13 -0
- package/data/migrations/models/20261126_drop_pre_sign_in_session.sql +15 -0
- package/data/models-schema.json +0 -29
- package/data/models-schema.sql +0 -11
- package/defaults.env +494 -203
- package/package.json +18 -15
- package/public/3rd-party-licenses.html.gz +0 -0
- package/public/3rd-party-licenses.txt.gz +0 -0
- package/public/app/AccountMenu.js +8 -0
- package/public/app/AccountMenu.js.gz +0 -0
- package/public/app/AnimatedNumber.js +1 -1
- package/public/app/AnimatedNumber.js.gz +0 -0
- package/public/app/Array.js.gz +0 -0
- package/public/app/AssetGallery.js +1 -1
- package/public/app/AssetGallery.js.gz +0 -0
- package/public/app/DropDown.js +1 -9
- package/public/app/DropDown.js.gz +0 -0
- package/public/app/HealthChecks.js +1 -1
- package/public/app/HealthChecks.js.gz +0 -0
- package/public/app/Lazy.js +1 -1
- package/public/app/Lazy.js.gz +0 -0
- package/public/app/Modal.js +1 -1
- package/public/app/Modal.js.gz +0 -0
- package/public/app/NavMenuButton.js +3 -3
- package/public/app/NavMenuButton.js.gz +0 -0
- package/public/app/PageActionsMenu.js +1 -1
- package/public/app/PageActionsMenu.js.gz +0 -0
- package/public/app/PlusTrialOffer.js +8 -0
- package/public/app/ProgressState.js +1 -1
- package/public/app/ProgressState.js.gz +0 -0
- package/public/app/SSEChannels.js +1 -1
- package/public/app/SSEChannels.js.gz +0 -0
- package/public/app/SSEClient.js +16 -0
- package/public/app/SSEClient.js.gz +0 -0
- package/public/app/Search.js +1 -1
- package/public/app/Search.js.gz +0 -0
- package/public/app/Spinner.js +4 -5
- package/public/app/Spinner.js.gz +0 -0
- package/public/app/StickyHeader.js +1 -1
- package/public/app/StickyHeader.js.gz +0 -0
- package/public/app/SvgIcon.js +9 -0
- package/public/app/SvgIcon.js.gz +0 -0
- package/public/app/SyncApi.js +8 -0
- package/public/app/SyncApi.js.gz +0 -0
- package/public/app/Tag.js +1 -1
- package/public/app/Tag.js.gz +0 -0
- package/public/app/_plugin-vue_export-helper.js +1 -1
- package/public/app/_plugin-vue_export-helper.js.gz +0 -0
- package/public/app/about.css +1 -1
- package/public/app/about.css.gz +0 -0
- package/public/app/about.js +1 -1
- package/public/app/about.js.gz +0 -0
- package/public/app/account-menu.css +8 -0
- package/public/app/account-menu.css.gz +0 -0
- package/public/app/account-menu.js +8 -0
- package/public/app/app.css +1 -1
- package/public/app/app.css.gz +0 -0
- package/public/app/app.js +5 -5
- package/public/app/app.js.gz +0 -0
- package/public/app/assets/sse-worker-DM-4CYA4.js +8 -0
- package/public/app/assets/sse-worker-DM-4CYA4.js.gz +0 -0
- package/public/app/health.css +1 -1
- package/public/app/health.css.gz +0 -0
- package/public/app/health.js +2 -2
- package/public/app/health.js.gz +0 -0
- package/public/app/logs.css +1 -1
- package/public/app/logs.css.gz +0 -0
- package/public/app/logs.js +1 -1
- package/public/app/logs.js.gz +0 -0
- package/public/app/platform.js +1 -1
- package/public/app/platform.js.gz +0 -0
- package/public/app/roboto-mono-v22-latin-700.woff2.gz +0 -0
- package/public/app/roboto-mono-v22-latin-regular.woff2.gz +0 -0
- package/public/app/roboto-v51-latin-wght.woff2.gz +0 -0
- package/public/app/settings.css +1 -1
- package/public/app/settings.css.gz +0 -0
- package/public/app/settings.js +1 -1
- package/public/app/settings.js.gz +0 -0
- package/public/app/splash.css +1 -1
- package/public/app/splash.css.gz +0 -0
- package/public/app/splash.js.gz +0 -0
- package/public/app/sync.css +1 -1
- package/public/app/sync.css.gz +0 -0
- package/public/app/sync.js +12 -3
- package/public/app/sync.js.gz +0 -0
- package/public/app/useAnchorHighlight.js +1 -1
- package/public/eula.html +7 -1
- package/public/images/framed-picture.svg.gz +0 -0
- package/public/images/key.svg.gz +0 -0
- package/public/images/label.svg.gz +0 -0
- package/public/images/mailbox-with-raised-flag.svg.gz +0 -0
- package/public/images/unlocked.svg.gz +0 -0
- package/public/js/confetti.min.js +3 -0
- package/tools/licenses/canvas-confetti/LICENSE.txt +15 -0
- package/views/_account-menu.ejs +23 -0
- package/views/_library-dir-choice.ejs +150 -0
- package/views/_library-name-field.ejs +17 -0
- package/views/_setting-override-source.ejs +6 -0
- package/views/_setting-override.ejs +13 -7
- package/views/docker-setup.ejs +17 -20
- package/views/error.ejs +3 -0
- package/views/eula.html +7 -1
- package/views/license-activation.ejs +40 -12
- package/views/login.ejs +169 -0
- package/views/settings.ejs +146 -213
- package/views/spa.ejs +4 -0
- package/views/users.ejs +215 -0
- package/views/welcome-tools.ejs +28 -14
- package/views/welcome.ejs +71 -40
- package/public/app/sse-worker.js +0 -8
- package/public/app/sse-worker.js.gz +0 -0
- package/public/images/photostructure-black.svg.gz +0 -0
- package/public/images/starry-night.svg.gz +0 -0
- package/public/images/tools.svg.gz +0 -0
package/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Version:
|
|
1
|
+
**Version: October 24, 2026.** Effective when you accept it. See "Changes and
|
|
2
2
|
other terms" below for later revisions.
|
|
3
3
|
|
|
4
4
|
This agreement is between you and PhotoStructure, Inc. ("we" or "us") for the
|
|
@@ -41,6 +41,13 @@ applicable law or included components' licenses. See the
|
|
|
41
41
|
and notices with your installation for copying, modification, and redistribution
|
|
42
42
|
rights.
|
|
43
43
|
|
|
44
|
+
If you ask it to, PhotoStructure can install separate third-party tools, such
|
|
45
|
+
as photo and video tools and the package manager that installs them. Those
|
|
46
|
+
tools are not part of the Software: we do not distribute, warrant, or support them, and their
|
|
47
|
+
own licenses apply. Some may require patent
|
|
48
|
+
licenses depending on where and how you use them, and you are responsible for
|
|
49
|
+
any you need.
|
|
50
|
+
|
|
44
51
|
## Privacy and updates
|
|
45
52
|
|
|
46
53
|
**PhotoStructure does not send your photos or videos to us.** Application error
|
package/README.md
CHANGED
|
@@ -6,8 +6,112 @@ Welcome to your new home for all your photos and videos!
|
|
|
6
6
|
|
|
7
7
|
PhotoStructure for Servers requires:
|
|
8
8
|
|
|
9
|
-
- a 64-bit Intel or AMD CPU
|
|
10
|
-
- At least Ubuntu LTS 22.04, macOS Sequoia (15), or Windows
|
|
9
|
+
- a 64-bit Intel or AMD (x64) CPU, or a 64-bit ARM (arm64) CPU on Linux or macOS
|
|
10
|
+
- At least Ubuntu LTS 22.04, macOS Sequoia (15), or Windows 11
|
|
11
|
+
|
|
12
|
+
The standalone Node edition requires Node.js 24 or newer. Docker includes its
|
|
13
|
+
own compatible Node runtime.
|
|
14
|
+
|
|
15
|
+
If you choose email or OIDC sign-in (see below) for a network-accessible
|
|
16
|
+
deployment, Docker included, first set `PS_EXTERNAL_ORIGIN` to the exact origin
|
|
17
|
+
used in your browser: scheme, hostname, and non-default port, such as
|
|
18
|
+
`https://photos.example.com` or `http://nas.example.com:1787`. Do not include a
|
|
19
|
+
path. The `none` mode, which serves the library without sign-in, needs no
|
|
20
|
+
external origin, as releases before sign-in did.
|
|
21
|
+
|
|
22
|
+
If you use a reverse proxy with email or OIDC sign-in, replace any
|
|
23
|
+
`PS_TRUST_PROXY=true` or `1` configuration with `loopback` for a proxy on
|
|
24
|
+
localhost or the explicit trusted proxy subnet(s); in `none` mode those values
|
|
25
|
+
keep working. Use `false` when no proxy is trusted. An
|
|
26
|
+
invalid external origin, a missing one with email or OIDC sign-in, a
|
|
27
|
+
`PS_TRUST_PROXY` value Express cannot parse such as `0.0.0.0/0`, or a
|
|
28
|
+
trust-all proxy setting under email or OIDC sign-in, pauses application access
|
|
29
|
+
until corrected. Put these
|
|
30
|
+
values in your deployment configuration before restarting; recreate a Docker
|
|
31
|
+
container when changing its environment. The proxy must preserve the public
|
|
32
|
+
`Host` and browser `Origin` headers and send `X-Forwarded-Proto` matching the
|
|
33
|
+
external origin's scheme (`https` when the proxy terminates TLS). PhotoStructure
|
|
34
|
+
honors that protocol header only from a configured trusted proxy.
|
|
35
|
+
|
|
36
|
+
PhotoStructure pauses access to a library until its owner chooses how people
|
|
37
|
+
sign in, with the commands below or `PS_AUTH_MODE`: emailed codes, an OpenID
|
|
38
|
+
Connect provider, or `none`, which serves the library without sign-in, as
|
|
39
|
+
releases before sign-in did. This applies to libraries from earlier releases
|
|
40
|
+
too.
|
|
41
|
+
|
|
42
|
+
On a Node installation, configure access locally. Create or select the
|
|
43
|
+
directory that will hold the library, then choose how people sign in:
|
|
44
|
+
|
|
45
|
+
- `photostructure auth set-email --admin-email "<your address>" --library /path/to/library`
|
|
46
|
+
emails each user a one-time sign-in code. Add the outgoing mail server
|
|
47
|
+
with `--smtp-host` and `--from-address`, plus `--smtp-port`,
|
|
48
|
+
`--smtp-security`, `--smtp-user`, `--smtp-password` and `--from-name` as
|
|
49
|
+
your server needs, or set the matching `PS_EMAIL_*` settings instead.
|
|
50
|
+
To read the password from a file, set `PS_EMAIL_SMTP_PASSWORD_FILE` to the
|
|
51
|
+
[password file's path](https://photostructure.com/guide/environment-variables/#secret-files).
|
|
52
|
+
- `photostructure auth set-oidc --admin-email "<your address>" --library /path/to/library`
|
|
53
|
+
signs users in with an OpenID Connect provider. Add `--oidc-issuer`,
|
|
54
|
+
`--oidc-client-id` and `--oidc-client-secret`, or set `PS_OIDC_ISSUER`,
|
|
55
|
+
`PS_OIDC_CLIENT_ID` and `PS_OIDC_CLIENT_SECRET` instead.
|
|
56
|
+
To read the client secret from a file, set `PS_OIDC_CLIENT_SECRET_FILE` to the
|
|
57
|
+
[secret file's path](https://photostructure.com/guide/environment-variables/#secret-files).
|
|
58
|
+
- `photostructure auth set-none --library /path/to/library` serves the library
|
|
59
|
+
without sign-in: every device that can reach PhotoStructure is an Admin,
|
|
60
|
+
with no browser Host or Origin checks (on Docker, usually the whole
|
|
61
|
+
network). It is also how to turn email or OIDC sign-in off again; the users
|
|
62
|
+
are kept for later.
|
|
63
|
+
|
|
64
|
+
The options save the mail server or provider with the library, in its
|
|
65
|
+
owner-only `.photostructure/settings.toml`; a rerun changes only the options
|
|
66
|
+
it names. To keep a password or client secret
|
|
67
|
+
off the command line, pass `-` as its value and send it on stdin. `set-email`
|
|
68
|
+
and `set-oidc` add that address as the library's first Admin. Start
|
|
69
|
+
or restart PhotoStructure afterward and continue setup at
|
|
70
|
+
`http://127.0.0.1:1787` with the default local configuration, or at your
|
|
71
|
+
configured external origin.
|
|
72
|
+
|
|
73
|
+
For email or OIDC sign-in in Docker, set the origin and proxy configuration
|
|
74
|
+
above before recreating the container. Then configure access in that running
|
|
75
|
+
container and restart it; the `auth` commands do not require another
|
|
76
|
+
recreation.
|
|
77
|
+
|
|
78
|
+
For initial Docker setup, set `PS_AUTH_MODE` to `email`, `oidc` or `none` in
|
|
79
|
+
the container's environment. A compose file that later loses `PS_AUTH_MODE`
|
|
80
|
+
pauses access again instead of opening the library to every device. For
|
|
81
|
+
`email` or `oidc`, also
|
|
82
|
+
set `PS_AUTH_ADMIN_EMAIL` to the first Admin's address, and the mail server
|
|
83
|
+
(`PS_EMAIL_*`) or OIDC provider (`PS_OIDC_*`) settings above. The first start
|
|
84
|
+
with an empty user list adds `PS_AUTH_ADMIN_EMAIL` as an Admin; later starts
|
|
85
|
+
never add or change users from the environment.
|
|
86
|
+
|
|
87
|
+
To choose instead from a running container, replace `CONTAINER_NAME` with its
|
|
88
|
+
name and run:
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
docker exec CONTAINER_NAME /opt/photostructure/docker-entrypoint.sh auth set-email --admin-email "<your address>"
|
|
92
|
+
docker restart CONTAINER_NAME
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Use `auth set-oidc` or `auth set-none` the same way. Use the entrypoint shown
|
|
96
|
+
above so the library database and cookie-signing secret belong to the
|
|
97
|
+
configured container user.
|
|
98
|
+
|
|
99
|
+
In `none` mode only another site's changes are refused. `PS_NO_NETWORK=true`
|
|
100
|
+
pauses email and OIDC sign-in, because it blocks the mail server and OIDC
|
|
101
|
+
provider too.
|
|
102
|
+
|
|
103
|
+
The library database owns its users, login sessions, and their revocation
|
|
104
|
+
generation. Deployment configuration stores the cookie-signing secret and the
|
|
105
|
+
mail server or OIDC provider settings. PhotoStructure's timestamped historical
|
|
106
|
+
backups omit sessions and carry a newly randomized revocation generation.
|
|
107
|
+
Repair, dump, and recovery also clear sessions and randomize that generation
|
|
108
|
+
before exposing the recovered database, so browsers must sign in again. Users
|
|
109
|
+
and their roles remain in these backups.
|
|
110
|
+
|
|
111
|
+
An arbitrary filesystem snapshot of the live database can include live sessions
|
|
112
|
+
and their generation. PhotoStructure cannot make such an out-of-band snapshot
|
|
113
|
+
rollback-proof while all session authority lives in that same database. Use the
|
|
114
|
+
supported backup and recovery paths when session invalidation must be preserved.
|
|
11
115
|
|
|
12
116
|
PhotoStructure for Docker does not support Windows hosts, including Docker
|
|
13
117
|
Desktop. On Windows, use PhotoStructure for Node.js or PhotoStructure for
|
package/VERSION.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2026.
|
|
2
|
+
"version": "2026.12.3",
|
|
3
3
|
"versionMajor": 2026,
|
|
4
|
-
"versionMinor":
|
|
5
|
-
"versionPatch":
|
|
4
|
+
"versionMinor": 12,
|
|
5
|
+
"versionPatch": 3,
|
|
6
6
|
"versionPrerelease": [],
|
|
7
|
-
"release": "2026.
|
|
8
|
-
"gitSha": "
|
|
9
|
-
"gitDate": "2026-
|
|
7
|
+
"release": "2026.12.3+20261204054358",
|
|
8
|
+
"gitSha": "74f386952c104204dc8972e545789a77b810fc8a",
|
|
9
|
+
"gitDate": "2026-12-04T13:43:58.000Z"
|
|
10
10
|
}
|