Commit graph

32 commits

Author SHA1 Message Date
nymkappa
2c3af53943
Revert "[ssr] accept 301 and 302 as valid for nginx cache" 2026-07-27 21:48:20 +02:00
nymkappa
0265ffa9ac
[ssr] accept 404 as valid status for static images caching 2026-07-03 19:20:36 +09:00
nymkappa
a595bb44f9
[ssr] accept 301 and 302 as valid for nginx cache 2026-07-03 17:51:18 +09:00
mononaut
051c4cf5b1
[ops] reduce liquid asset cache times 2026-05-25 11:14:10 +00:00
wiz
416877d805
ops: Set custom nginx cache keys for various SSR paths 2025-12-28 04:00:05 -10:00
wiz
b8d8c80f0b
ops: Change /slurp to /sip, route everything to SSR 2025-12-11 21:49:52 +09:00
wiz
0144c052a4
ops: Add /ssr routes in nginx config 2025-12-11 18:31:32 +09:00
wiz
a683cbc1da
ops: Fix regex case matching in nginx /twidget location 2025-04-22 15:41:00 +09:00
wiz
95df451482
ops: Fix regex in nginx /twidget location pattern 2025-04-22 15:19:33 +09:00
wiz
90a002979f
ops: Add global /twidget path for twitter widget 2025-04-22 15:04:38 +09:00
wiz
c626bd1ea2
ops: Remove old X-Frame-Options HTTP header 2025-02-19 10:56:31 -06:00
wiz
cb63d17a2f
ops: Don't always set frameoptions in nginx 2024-10-23 22:12:40 +09:00
Mononaut
1cdb38af0b
Fix nginx caching for customize.js resource 2024-05-13 16:57:14 +00:00
wiz
b180fe694f
ops: Tweak nginx config for gone paths and render expires 2023-08-23 01:09:11 +09:00
wiz
8e73e76312
ops: Tweak proxy_cache_valid time for unfurler/slurper cache 2023-08-20 02:36:34 +09:00
wiz
9d978ead6d
ops: Set expires headers for unfurler/slurper responses 2023-08-20 00:01:22 +09:00
wiz
655eb31107
ops: Tweak nginx cache valid time for unfurler/slurper 2023-08-19 23:27:08 +09:00
wiz
83a92a7e3a
ops: Add nginx config for /unfurler and /slurper prefixes 2023-08-16 03:27:09 +09:00
wiz
ef3ce6d187
Merge pull request #3799 from Emzy/ops/nginx-json-match 2023-05-25 14:58:45 -03:00
Stephan Oeste
ad4c7d7c0b
Fix exact match of .js files. Was also matching .json before. 2023-05-25 16:50:56 +02:00
wiz
8adacd4a0e
ops: Add missing unfurl route in nginx/server-common.conf 2023-03-08 16:14:43 +09:00
Felipe Knorr Kuhn
81d35d9401
Update nginx cache settings for the frontend config files 2022-10-15 19:44:34 -07:00
Erik Arvstedt
22def9b01c
frontend: Don't copy resources to language dirs
Since 355e89ce5, the frontend references resources via root-relative URLs.
This means that `resources` dirs in the language dirs are no longer
accessed and can be removed.

Achieve this by defining a specific `assets` production config that
doesn't include `src/resources`.

As of fd35c8f4a, this shrinks the frontend size by 55% (279M -> 124M).

Also, the nginx location configs now can be simplified.
2022-09-09 14:42:55 +02:00
wiz
4a2c35c81b
[ops] Add missing unfurl nginx route 2022-08-30 16:50:31 +02:00
wiz
004dcebc19
[ops] Add nginx entrypoints for unfurler daemon 2022-08-27 14:17:17 +02:00
wiz
bba9f2608a
[ops] Add nginx placeholders for unfurlbot configuration 2022-08-27 13:55:30 +02:00
wiz
92da3988da
Reduce nginx cache time for production homepage 2022-07-18 17:47:33 -05:00
Erik Arvstedt
eec82e1bf9 nginx: Fix gixy test http_splitting
Fixes test error:
```
>> Problem: [http_splitting] Possible HTTP-Splitting vulnerability.
Description: Using variables that can contain "\n" or "\r" may lead to http injection.
```

Summary: `$uri` should never be used in `return` statements.
See: https://github.com/yandex/gixy/blob/master/docs/en/plugins/httpsplitting.md

In this case, `$uri` always equals `/`, so just replace it.
2022-07-11 15:25:42 +02:00
wiz
a710934830
Update production nginx.conf resource cache times 2022-01-14 22:35:25 +09:00
wiz
f0c53a4e5b
Improve nginx caching and use redirects for i18n 2022-01-12 23:12:49 +09:00
wiz
c778e84247
Add missing } at end of nginx/server-common.conf 2022-01-04 17:27:37 +09:00
wiz
4de1d017ad
Update production configurations + README for v2.3
* Refactor production nginx configuration files
* Update README for new networks, SQL, etc.
2022-01-04 16:38:12 +09:00