Commit Graph

66 Commits

Author SHA1 Message Date
Mark H. Wood
bf9b2b82e1 Document a modified method as required by PR guidelines. 2023-08-22 17:07:20 -04:00
Mark H. Wood
4449737aed Properly await termination. 2023-08-22 15:46:55 -04:00
Mark H. Wood
6709c3bb5f Graceful shutdown on SIGINT (e.g. from 'pm2 stop'). 2023-08-22 14:38:04 -04:00
Giuseppe Digilio
163014306c [DURACOM-172] improve regex 2023-06-23 09:23:28 +02:00
Giuseppe Digilio
6a58e49fb4 [DURACOM-172] add check to save only successful response into the SSR cache 2023-06-22 18:16:53 +02:00
Giuseppe Digilio
2f06a7cb17 [CST-5729] Change in order to save header only if configured and existing 2023-06-14 18:26:55 +02:00
Giuseppe Digilio
ac9be25faf [CST-5729] check if header exists 2023-06-13 19:30:40 +02:00
Giuseppe Digilio
486aefebc7 [CST-5729] Add possibility to store response's headers into the SSR cache 2023-06-13 19:00:33 +02:00
Giuseppe Digilio
96903d89de [CST-5729] fix signposting proxy url 2023-06-09 19:24:16 +02:00
Giuseppe Digilio
fe8bbddac2 [CST-5729] Fix proxying for signposting 2023-05-11 15:05:35 +02:00
Alban Imami
e8ff0fbf36 [CST-5729] implemented functionality to add link tags in head html section when on item page 2023-05-11 12:53:18 +02:00
Alban Imami
90a1f25ba9 Work for signposting 2023-04-27 16:51:41 +02:00
Yury Bondarenko
59d8ba5d7e Merge remote-tracking branch 'origin/main' into restore-csr-fallback 2023-02-10 11:53:31 +01:00
Tim Donohue
9e11d69a8a Fix bug where allowStale couldn't be disabled 2023-02-09 08:48:50 -06:00
Tim Donohue
c099bc468d Add "debug" config and "allowStale" configs 2023-02-07 12:22:32 -06:00
Yury Bondarenko
88cb397dc9 Fix direct CSR
By moving from environment.ts to config.yml we made it so the environment is _not_ up to date with the server configuration when main.js is first loaded.
Because of this the app behaved as if CSR always happened _after_ SSR, effectively breaking direct CSR.

Here the "criterion" for SSR/non-SSR HTML is changed from the related configuration property to the presence of Angular Universal transfer state.

This means we can correctly determine when to bootstrap the app for direct CSR, and it's' now "safe" to just send index.html by itself.
2023-02-07 15:25:20 +01:00
Tim Donohue
bae63111e7 Refactor to two caches. One for bots and one for anonymous users 2023-02-03 12:59:13 -06:00
Tim Donohue
36085e4854 Avoid caching a page twice in a row 2023-02-02 15:09:31 -06:00
Tim Donohue
048e5b012d Rename enableCache() to initCache() to make code easier to understand 2023-02-02 15:09:31 -06:00
Tim Donohue
f9810493c3 Remove unused import 2023-02-02 15:09:31 -06:00
Tim Donohue
0d4cf5e468 Update SSR caching to only work when unauthenticated. Enhance config comments 2023-02-02 15:09:31 -06:00
Tim Donohue
b0696a404d Add SSR caching via lru-cache. Update Cache-Control header to 1 week, but tell browsers not to cache index.html 2023-02-02 15:09:31 -06:00
Art Lowel
266931f55f Merge remote-tracking branch 'upstream/main' into fully-qualified-sitemap-urls-7.5-next 2023-01-11 17:51:58 +01:00
Art Lowel
5c77f500dc Merge tag 'dspace-7.4' into fully-qualified-sitemap-urls-7.4 2023-01-11 17:39:22 +01:00
Art Lowel
be0b54e058 change sitemap entries in robots.txt to absolute urls 2022-12-01 15:08:58 +01:00
Tim Donohue
d66fdf42b1 Add lint rule banning wildcard imports. Fix existing ones where possible. 2022-10-27 16:02:24 -05:00
Tim Donohue
695ce3ab9e Merge pull request #1850 from atmire/use-x-forwarded-for-redirect
Use values from x-forwarded headers in getOrigin server side
2022-09-28 10:31:16 -05:00
Art Lowel
941e71a75b add useProxies config to support x-forwarded headers in express 2022-09-28 13:10:46 +02:00
Art Lowel
c94e5d0709 add startup message with version number 2022-09-13 16:39:58 +02:00
Tim Donohue
a1598f9f8a Merge pull request #1637 from 4Science/CST-5535
Add admin panel for actuator information
2022-06-08 09:11:58 -05:00
William Welling
cfb4a627be use router for static assets 2022-06-02 10:16:49 -05:00
Giuseppe Digilio
d751de0aa6 Merge remote-tracking branch 'origin/main' into CST-5535
# Conflicts:
#	src/app/admin/admin-sidebar/admin-sidebar.component.ts
2022-05-19 16:59:45 +02:00
William Welling
2db80022b5 Merge branch 'main' of github.com:harvard-lts/dspace-angular into 145-base-path-support 2022-05-19 09:03:11 -05:00
William Welling
9a433b50ff support base path 2022-05-06 14:32:44 -05:00
Giuseppe Digilio
675f3910cc [CST-5535] Refactoring health check server side request 2022-05-03 15:32:02 +02:00
Giuseppe Digilio
26d496d55c Merge remote-tracking branch 'origin/main' into CST-5535
# Conflicts:
#	package.json
#	yarn.lock
2022-05-02 16:13:52 +02:00
Yura Bondarenko
1522c36ed0 Merge remote-tracking branch 'origin/main' into w2p-90978_Improve-initial-page-load_PR 2022-04-28 13:49:39 +02:00
Yura Bondarenko
7e391f0411 90978: Serve pre-compressed static files 2022-04-28 12:16:46 +02:00
Yura Bondarenko
22c5976095 87968: Upgrade to Angular 12 2022-04-08 17:57:15 +02:00
Pratik Rajkotiya
108f6e60f9 [CST-5535] WIP 2022-03-25 18:37:25 +05:30
William Welling
10622008c4 refactor config filename and convert to yaml 2021-12-08 14:56:52 -06:00
William Welling
33488ccf40 extend environment and use injected app config 2021-12-07 10:12:27 -06:00
William Welling
71f5b46639 use standard environments 2021-12-06 12:25:37 -06:00
William Welling
8d66f68dfa remove bundle workaround, update dependencies and build 2021-11-17 22:11:06 -06:00
Michael W Spalti
98571a496c Merge remote-tracking branch 'origin/iiif-mirador' into iiif-mirador 2021-04-20 14:46:44 -07:00
Art Lowel
3c93777e84 don't use CSR fallback when the headers are changed after the response is sent 2021-04-06 16:46:21 +02:00
Michael Spalti
42802bd543 Added mirador route to express server. 2021-03-30 10:54:03 -07:00
Art Lowel
4b69b48007 fix issue where the app wouldn't start in prod mode if preboot was disabled 2021-01-29 11:26:26 +01:00
Giuseppe Digilio
2b8f436634 changes to address feedback 2021-01-12 10:42:46 +01:00
Giuseppe Digilio
84840678d2 Several fixes after merge with main 2020-12-04 14:16:40 +01:00