14 Commits

Author SHA1 Message Date
wiz
aea1161846 Merge pull request #3799 from Emzy/ops/nginx-json-match 2023-05-25 14:58:45 -03:00
Stephan Oeste
8401b80738 Fix exact match of .js files. Was also matching .json before. 2023-05-25 16:50:56 +02:00
wiz
1fc0289dcd ops: Add missing unfurl route in nginx/server-common.conf 2023-03-08 16:14:43 +09:00
Felipe Knorr Kuhn
affa982344 Update nginx cache settings for the frontend config files 2022-10-15 19:44:34 -07:00
Erik Arvstedt
92233bec63 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
53774a84c6 [ops] Add missing unfurl nginx route 2022-08-30 16:50:31 +02:00
wiz
1b5e97ef26 [ops] Add nginx entrypoints for unfurler daemon 2022-08-27 14:17:17 +02:00
wiz
7f75669316 [ops] Add nginx placeholders for unfurlbot configuration 2022-08-27 13:55:30 +02:00
wiz
215978985c Reduce nginx cache time for production homepage 2022-07-18 17:47:33 -05:00
Erik Arvstedt
a88388e311 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
25400c0241 Update production nginx.conf resource cache times 2022-01-14 22:35:25 +09:00
wiz
3c8a146302 Improve nginx caching and use redirects for i18n 2022-01-12 23:12:49 +09:00
wiz
c73b4f1596 Add missing } at end of nginx/server-common.conf 2022-01-04 17:27:37 +09:00
wiz
9a82973d28 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