Skip to content

Commit c3d44cb

Browse files
authored
Merge pull request #625 from internxt/fix/token-renewal
[_]: fix/token-renewal
2 parents c917e18 + 7250e06 commit c3d44cb

30 files changed

Lines changed: 548 additions & 582 deletions

.dockerignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.git
2+
.github
3+
.husky
4+
.vscode
5+
.idea
6+
node_modules
7+
dist
8+
lib
9+
coverage
10+
.nyc_output
11+
tmp
12+
*.log
13+
*.tsbuildinfo
14+
oclif.lock
15+
oclif.manifest.json
16+
.env
17+
.npmrc
18+
cli.inxt

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ COPY .env.template .env
99
COPY .npmrc.template .npmrc
1010

1111
RUN npm install
12+
RUN npm approve-scripts --all
13+
RUN npm rebuild
1214
RUN npm run build
1315

1416
RUN chmod +x /app/docker/entrypoint.sh

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ npm install -g @internxt/cli
5252
$ internxt COMMAND
5353
running command...
5454
$ internxt (--version)
55-
@internxt/cli/1.6.6 win32-x64 node-v24.15.0
55+
@internxt/cli/1.6.7 win32-x64 node-v24.15.0
5656
$ internxt --help [COMMAND]
5757
USAGE
5858
$ internxt COMMAND
@@ -145,7 +145,7 @@ EXAMPLES
145145
$ internxt add-cert
146146
```
147147

148-
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/add-cert.ts)_
148+
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/add-cert.ts)_
149149

150150
## `internxt add cert`
151151

@@ -203,7 +203,7 @@ EXAMPLES
203203
$ internxt autocomplete --refresh-cache
204204
```
205205

206-
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.52/src/commands/autocomplete/index.ts)_
206+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.53/src/commands/autocomplete/index.ts)_
207207

208208
## `internxt config`
209209

@@ -232,7 +232,7 @@ EXAMPLES
232232
$ internxt config
233233
```
234234

235-
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/config.ts)_
235+
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/config.ts)_
236236

237237
## `internxt create-folder`
238238

@@ -266,7 +266,7 @@ EXAMPLES
266266
$ internxt create-folder
267267
```
268268

269-
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/create-folder.ts)_
269+
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/create-folder.ts)_
270270

271271
## `internxt create folder`
272272

@@ -330,7 +330,7 @@ EXAMPLES
330330
$ internxt delete-permanently-file
331331
```
332332

333-
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/delete-permanently-file.ts)_
333+
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/delete-permanently-file.ts)_
334334

335335
## `internxt delete-permanently-folder`
336336

@@ -362,7 +362,7 @@ EXAMPLES
362362
$ internxt delete-permanently-folder
363363
```
364364

365-
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/delete-permanently-folder.ts)_
365+
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/delete-permanently-folder.ts)_
366366

367367
## `internxt delete permanently file`
368368

@@ -457,7 +457,7 @@ EXAMPLES
457457
$ internxt download-file
458458
```
459459

460-
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/download-file.ts)_
460+
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/download-file.ts)_
461461

462462
## `internxt download file`
463463

@@ -520,7 +520,7 @@ EXAMPLES
520520
$ internxt list
521521
```
522522

523-
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/list.ts)_
523+
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/list.ts)_
524524

525525
## `internxt login`
526526

@@ -554,7 +554,7 @@ EXAMPLES
554554
$ internxt login
555555
```
556556

557-
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/login.ts)_
557+
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/login.ts)_
558558

559559
## `internxt login-legacy`
560560

@@ -588,7 +588,7 @@ EXAMPLES
588588
$ internxt login-legacy
589589
```
590590

591-
_See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/login-legacy.ts)_
591+
_See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/login-legacy.ts)_
592592

593593
## `internxt logout`
594594

@@ -614,7 +614,7 @@ EXAMPLES
614614
$ internxt logout
615615
```
616616

617-
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/logout.ts)_
617+
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/logout.ts)_
618618

619619
## `internxt logs`
620620

@@ -640,7 +640,7 @@ EXAMPLES
640640
$ internxt logs
641641
```
642642

643-
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/logs.ts)_
643+
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/logs.ts)_
644644

645645
## `internxt move-file`
646646

@@ -674,7 +674,7 @@ EXAMPLES
674674
$ internxt move-file
675675
```
676676

677-
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/move-file.ts)_
677+
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/move-file.ts)_
678678

679679
## `internxt move-folder`
680680

@@ -708,7 +708,7 @@ EXAMPLES
708708
$ internxt move-folder
709709
```
710710

711-
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/move-folder.ts)_
711+
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/move-folder.ts)_
712712

713713
## `internxt move file`
714714

@@ -805,7 +805,7 @@ EXAMPLES
805805
$ internxt rename-file
806806
```
807807

808-
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/rename-file.ts)_
808+
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/rename-file.ts)_
809809

810810
## `internxt rename-folder`
811811

@@ -838,7 +838,7 @@ EXAMPLES
838838
$ internxt rename-folder
839839
```
840840

841-
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/rename-folder.ts)_
841+
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/rename-folder.ts)_
842842

843843
## `internxt rename file`
844844

@@ -932,7 +932,7 @@ EXAMPLES
932932
$ internxt trash-clear
933933
```
934934

935-
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/trash-clear.ts)_
935+
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-clear.ts)_
936936

937937
## `internxt trash-file`
938938

@@ -964,7 +964,7 @@ EXAMPLES
964964
$ internxt trash-file
965965
```
966966

967-
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/trash-file.ts)_
967+
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-file.ts)_
968968

969969
## `internxt trash-folder`
970970

@@ -996,7 +996,7 @@ EXAMPLES
996996
$ internxt trash-folder
997997
```
998998

999-
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/trash-folder.ts)_
999+
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-folder.ts)_
10001000

10011001
## `internxt trash-list`
10021002

@@ -1028,7 +1028,7 @@ EXAMPLES
10281028
$ internxt trash-list
10291029
```
10301030

1031-
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/trash-list.ts)_
1031+
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-list.ts)_
10321032

10331033
## `internxt trash-restore-file`
10341034

@@ -1061,7 +1061,7 @@ EXAMPLES
10611061
$ internxt trash-restore-file
10621062
```
10631063

1064-
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/trash-restore-file.ts)_
1064+
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-restore-file.ts)_
10651065

10661066
## `internxt trash-restore-folder`
10671067

@@ -1094,7 +1094,7 @@ EXAMPLES
10941094
$ internxt trash-restore-folder
10951095
```
10961096

1097-
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/trash-restore-folder.ts)_
1097+
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-restore-folder.ts)_
10981098

10991099
## `internxt trash clear`
11001100

@@ -1309,7 +1309,7 @@ EXAMPLES
13091309
$ internxt upload-file
13101310
```
13111311

1312-
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/upload-file.ts)_
1312+
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/upload-file.ts)_
13131313

13141314
## `internxt upload-folder`
13151315

@@ -1342,7 +1342,7 @@ EXAMPLES
13421342
$ internxt upload-folder
13431343
```
13441344

1345-
_See code: [src/commands/upload-folder.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/upload-folder.ts)_
1345+
_See code: [src/commands/upload-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/upload-folder.ts)_
13461346

13471347
## `internxt upload file`
13481348

@@ -1436,7 +1436,7 @@ EXAMPLES
14361436
$ internxt webdav status
14371437
```
14381438

1439-
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/webdav.ts)_
1439+
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/webdav.ts)_
14401440

14411441
## `internxt webdav-config`
14421442

@@ -1475,7 +1475,7 @@ EXAMPLES
14751475
$ internxt webdav-config
14761476
```
14771477

1478-
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/webdav-config.ts)_
1478+
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/webdav-config.ts)_
14791479

14801480
## `internxt whoami`
14811481

@@ -1501,7 +1501,7 @@ EXAMPLES
15011501
$ internxt whoami
15021502
```
15031503

1504-
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/whoami.ts)_
1504+
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/whoami.ts)_
15051505

15061506
## `internxt workspaces-list`
15071507

@@ -1533,7 +1533,7 @@ EXAMPLES
15331533
$ internxt workspaces-list
15341534
```
15351535

1536-
_See code: [src/commands/workspaces-list.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/workspaces-list.ts)_
1536+
_See code: [src/commands/workspaces-list.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/workspaces-list.ts)_
15371537

15381538
## `internxt workspaces-unset`
15391539

@@ -1563,7 +1563,7 @@ EXAMPLES
15631563
$ internxt workspaces-unset
15641564
```
15651565

1566-
_See code: [src/commands/workspaces-unset.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/workspaces-unset.ts)_
1566+
_See code: [src/commands/workspaces-unset.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/workspaces-unset.ts)_
15671567

15681568
## `internxt workspaces-use`
15691569

@@ -1599,7 +1599,7 @@ EXAMPLES
15991599
$ internxt workspaces-use
16001600
```
16011601

1602-
_See code: [src/commands/workspaces-use.ts](https://github.com/internxt/cli/blob/v1.6.6/src/commands/workspaces-use.ts)_
1602+
_See code: [src/commands/workspaces-use.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/workspaces-use.ts)_
16031603

16041604
## `internxt workspaces list`
16051605

docker/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ services:
2727
WEBDAV_USERNAME: "" # (Optional) Custom username for WebDAV authentication
2828
WEBDAV_PASSWORD: "" # (Optional) Custom password for WebDAV authentication
2929
WEBDAV_DELETE_FILES_PERMANENTLY: "" # (Optional) Delete files permanently. Set to 'true' to enable
30+
WEBDAV_KEEPALIVE_ENABLED: "" # (Optional) Auto-renew the session/WebDAV server on failure. Defaults to 'true'. Set to 'false' to stop the container on failure instead
3031
ports:
3132
- "127.0.0.1:3005:3005" # Map container port to host. Change if WEBDAV_PORT is customized
3233
```
@@ -54,6 +55,7 @@ docker run -d \
5455
-e WEBDAV_USERNAME="" \
5556
-e WEBDAV_PASSWORD="" \
5657
-e WEBDAV_DELETE_FILES_PERMANENTLY="" \
58+
-e WEBDAV_KEEPALIVE_ENABLED="" \
5759
-p 127.0.0.1:3005:3005 \
5860
internxt/webdav:latest
5961
```
@@ -94,6 +96,7 @@ You can also run the `internxt/webdav` image directly on popular NAS devices lik
9496
| `WEBDAV_USERNAME` | ❌ No | Username for custom WebDAV authentication. Required if `WEBDAV_CUSTOM_AUTH` is enabled. |
9597
| `WEBDAV_PASSWORD` | ❌ No | Password for custom WebDAV authentication. Required if `WEBDAV_CUSTOM_AUTH` is enabled. |
9698
| `WEBDAV_DELETE_FILES_PERMANENTLY` | ❌ No | Delete files permanently instead of moving them to trash. Set to `true`to enable. |
99+
| `WEBDAV_KEEPALIVE_ENABLED` | ❌ No | Whether the session/WebDAV server is auto-renewed on failure. Session and WebDAV status are checked every 30 min. Defaults to `true`. Set to `false` to stop the container instead of re-authenticating, so it can be recovered by Docker's restart policy (e.g. `restart: unless-stopped`). |
97100

98101
---
99102

0 commit comments

Comments
 (0)