You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,7 @@ Unix socket example:
290
290
```yaml
291
291
server:
292
292
socket-path: /tmp/glance.sock
293
+
socket-mode: "0666"
293
294
assets-path: /home/user/glance-assets
294
295
```
295
296
@@ -300,6 +301,7 @@ server:
300
301
| host | string | no | |
301
302
| port | number | no | 8080 |
302
303
| socket-path | string | no | |
304
+
| socket-mode | string | no | |
303
305
| proxied | boolean | no | false |
304
306
| base-url | string | no | |
305
307
| assets-path | string | no | |
@@ -321,6 +323,22 @@ server:
321
323
322
324
This is useful for running behind reverse proxies that support Unix sockets, or in containerized environments where you want to share the socket via a volume mount.
323
325
326
+
#### `socket-mode`
327
+
File permissions to set on the Unix socket file, specified as octal permissions (e.g., "0666" or "666"). Only valid when `socket-path` is also specified. If not specified, the socket will use the default permissions set by the system.
328
+
329
+
Example:
330
+
```yaml
331
+
server:
332
+
socket-path: /tmp/glance.sock
333
+
socket-mode: "0666"
334
+
```
335
+
336
+
Common values:
337
+
- `"0600"`- Owner read/write only
338
+
- `"0660"`- Owner and group read/write
339
+
- `"0666"`- All users read/write (most permissive)
340
+
- `"0664"`- Owner and group read/write, others read only
341
+
324
342
#### `proxied`
325
343
Set to `true` if you're using a reverse proxy in front of Glance. This will make Glance use the `X-Forwarded-*` headers to determine the original request details.
0 commit comments