photostructure 2026.10.3 → 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.
Files changed (124) hide show
  1. package/README.md +106 -2
  2. package/VERSION.json +5 -5
  3. package/bin/auth.js +855 -0
  4. package/bin/bootstrap.js +3 -3
  5. package/bin/docker-env.js +3 -3
  6. package/bin/doctor.js +243 -250
  7. package/bin/fix.js +245 -249
  8. package/bin/info.js +233 -238
  9. package/bin/list.js +234 -242
  10. package/bin/logcat.js +74 -142
  11. package/bin/logtail.js +73 -141
  12. package/bin/main.js +119 -110
  13. package/bin/photostructure.js +5 -5
  14. package/bin/sync.js +290 -290
  15. package/bin/web.js +547 -332
  16. package/bin/worker.js +59 -64
  17. package/data/auth-schema.json +263 -0
  18. package/data/auth-schema.sql +75 -0
  19. package/data/migrations/auth/20261126_sign_in.sql +133 -0
  20. package/data/migrations/models/20261126_drop_pre_sign_in_session.sql +15 -0
  21. package/data/models-schema.json +0 -23
  22. package/data/models-schema.sql +0 -6
  23. package/defaults.env +393 -119
  24. package/package.json +15 -12
  25. package/public/3rd-party-licenses.html.gz +0 -0
  26. package/public/3rd-party-licenses.txt.gz +0 -0
  27. package/public/app/AccountMenu.js +8 -0
  28. package/public/app/AccountMenu.js.gz +0 -0
  29. package/public/app/AnimatedNumber.js +1 -1
  30. package/public/app/AnimatedNumber.js.gz +0 -0
  31. package/public/app/Array.js.gz +0 -0
  32. package/public/app/AssetGallery.js +1 -1
  33. package/public/app/AssetGallery.js.gz +0 -0
  34. package/public/app/DropDown.js +1 -9
  35. package/public/app/DropDown.js.gz +0 -0
  36. package/public/app/HealthChecks.js.gz +0 -0
  37. package/public/app/Lazy.js +1 -1
  38. package/public/app/Lazy.js.gz +0 -0
  39. package/public/app/Modal.js +1 -1
  40. package/public/app/Modal.js.gz +0 -0
  41. package/public/app/NavMenuButton.js +3 -3
  42. package/public/app/NavMenuButton.js.gz +0 -0
  43. package/public/app/PageActionsMenu.js +1 -1
  44. package/public/app/PageActionsMenu.js.gz +0 -0
  45. package/public/app/PlusTrialOffer.js +1 -1
  46. package/public/app/ProgressState.js +1 -1
  47. package/public/app/ProgressState.js.gz +0 -0
  48. package/public/app/SSEChannels.js +1 -1
  49. package/public/app/SSEChannels.js.gz +0 -0
  50. package/public/app/SSEClient.js +16 -0
  51. package/public/app/SSEClient.js.gz +0 -0
  52. package/public/app/Search.js +1 -1
  53. package/public/app/Search.js.gz +0 -0
  54. package/public/app/Spinner.js +4 -5
  55. package/public/app/Spinner.js.gz +0 -0
  56. package/public/app/StickyHeader.js +1 -1
  57. package/public/app/StickyHeader.js.gz +0 -0
  58. package/public/app/SvgIcon.js +9 -0
  59. package/public/app/SvgIcon.js.gz +0 -0
  60. package/public/app/SyncApi.js +8 -0
  61. package/public/app/SyncApi.js.gz +0 -0
  62. package/public/app/Tag.js +1 -1
  63. package/public/app/Tag.js.gz +0 -0
  64. package/public/app/_plugin-vue_export-helper.js +1 -1
  65. package/public/app/_plugin-vue_export-helper.js.gz +0 -0
  66. package/public/app/about.css +1 -1
  67. package/public/app/about.css.gz +0 -0
  68. package/public/app/about.js +1 -1
  69. package/public/app/about.js.gz +0 -0
  70. package/public/app/account-menu.css +8 -0
  71. package/public/app/account-menu.css.gz +0 -0
  72. package/public/app/account-menu.js +8 -0
  73. package/public/app/app.css +1 -1
  74. package/public/app/app.css.gz +0 -0
  75. package/public/app/app.js +5 -5
  76. package/public/app/app.js.gz +0 -0
  77. package/public/app/assets/sse-worker-DM-4CYA4.js.gz +0 -0
  78. package/public/app/health.css +1 -1
  79. package/public/app/health.css.gz +0 -0
  80. package/public/app/health.js +2 -2
  81. package/public/app/health.js.gz +0 -0
  82. package/public/app/logs.css +1 -1
  83. package/public/app/logs.css.gz +0 -0
  84. package/public/app/logs.js +1 -1
  85. package/public/app/logs.js.gz +0 -0
  86. package/public/app/platform.js +1 -1
  87. package/public/app/platform.js.gz +0 -0
  88. package/public/app/roboto-mono-v22-latin-700.woff2.gz +0 -0
  89. package/public/app/roboto-mono-v22-latin-regular.woff2.gz +0 -0
  90. package/public/app/roboto-v51-latin-wght.woff2.gz +0 -0
  91. package/public/app/settings.css +1 -1
  92. package/public/app/settings.css.gz +0 -0
  93. package/public/app/settings.js +1 -1
  94. package/public/app/settings.js.gz +0 -0
  95. package/public/app/splash.css +1 -1
  96. package/public/app/splash.css.gz +0 -0
  97. package/public/app/splash.js.gz +0 -0
  98. package/public/app/sync.css +1 -1
  99. package/public/app/sync.css.gz +0 -0
  100. package/public/app/sync.js +5 -5
  101. package/public/app/sync.js.gz +0 -0
  102. package/public/app/useAnchorHighlight.js +1 -1
  103. package/public/images/framed-picture.svg.gz +0 -0
  104. package/public/images/key.svg.gz +0 -0
  105. package/public/images/label.svg.gz +0 -0
  106. package/public/images/mailbox-with-raised-flag.svg.gz +0 -0
  107. package/public/images/unlocked.svg.gz +0 -0
  108. package/views/_account-menu.ejs +23 -0
  109. package/views/_library-dir-choice.ejs +150 -0
  110. package/views/_library-name-field.ejs +17 -0
  111. package/views/_setting-override-source.ejs +6 -0
  112. package/views/_setting-override.ejs +13 -7
  113. package/views/docker-setup.ejs +17 -20
  114. package/views/error.ejs +3 -0
  115. package/views/license-activation.ejs +40 -12
  116. package/views/login.ejs +169 -0
  117. package/views/settings.ejs +139 -195
  118. package/views/spa.ejs +4 -0
  119. package/views/users.ejs +215 -0
  120. package/views/welcome-tools.ejs +21 -11
  121. package/views/welcome.ejs +71 -40
  122. package/public/images/photostructure-black.svg.gz +0 -0
  123. package/public/images/starry-night.svg.gz +0 -0
  124. package/public/images/tools.svg.gz +0 -0
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 10
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.10.3",
2
+ "version": "2026.12.3",
3
3
  "versionMajor": 2026,
4
- "versionMinor": 10,
4
+ "versionMinor": 12,
5
5
  "versionPatch": 3,
6
6
  "versionPrerelease": [],
7
- "release": "2026.10.3+20261028130733",
8
- "gitSha": "df99c668045a0877b089e0f1c1dfd7275fcdbe33",
9
- "gitDate": "2026-10-28T20:07:33.000Z"
7
+ "release": "2026.12.3+20261204054358",
8
+ "gitSha": "74f386952c104204dc8972e545789a77b810fc8a",
9
+ "gitDate": "2026-12-04T13:43:58.000Z"
10
10
  }