Commit graph

22 commits

Author SHA1 Message Date
Goten Xiao
187e0fe66b Second attempt at conditionally slicing requests 2024-09-01 13:56:58 +01:00
Goten Xiao
1bbb96230c Use conditional slicing 2024-09-01 13:27:37 +01:00
James Kinsman
d01c26ae0d
Merge pull request #183 from Sweeny42/master
Configure NGINX to listen on port 80 for IPv6

This has been the subject of some contention for some time due to the increased support work load for the lancache.net team as a result of ipv6 mis-configuration. Having discussed this we're happy to enable the support at monolithic level, but will NOT be adding this to the instructions / dns container at this time
2024-07-08 12:39:05 +01:00
James Kinsman
4720121d60
Merge pull request #181 from HTX-LAN/master
Expose metrics from NGINX and Bind to Prometheus
2024-07-08 12:34:17 +01:00
Tim Pilius
fcba4f8056 Adding support for the new min_free parameter, so that nginx will automatically prune files once the minimum free space has been exceeded. 2024-05-06 16:19:25 -04:00
Sweeny
e693f4d3ce
Allow NGINX to bind IPv6 address on port 80
Configure NGINX to listen on port 80 for IPv6 addresses as well as IPv4
2023-11-14 21:06:23 +00:00
The0Mikkel
8a17ded5c3 Added NGINX metrics endpoint in seperate site
Co-authored-by: William Bergmann Børresen <ninkaninus@users.noreply.github.com>
2023-10-28 18:08:28 +00:00
sfinke0
b2a30145cb Implement additional log format: json access logs 2023-02-26 14:20:53 +01:00
James Kinsman
a45516468d
Addition of upstream proxy to resolve slice redirect errors (302 Playstation) (#156)
Addition of Upstream proxy from #60 to test 302 cache impact on PS5
caching
Refactored upstream proxy into lancache standard structure.
Simplified both location blocks into a single file rather than further
delegated folders
Fixed spacing & indents
2022-11-12 12:10:20 +00:00
James Kinsman
f67cd7cfcf
Update 90_lancache_heartbeat.conf
Respond to heartbeat with Clacks
2022-06-28 13:39:01 +01:00
James Kinsman
0813b0d54e
Rename overlay/etc/nginx/sites-available/cache.conf.d/99_gnu.conf to overlay/etc/nginx/sites-available/cache.conf.d/root/99_gnu.conf 2022-06-28 13:38:19 +01:00
James Kinsman
0164bbbeb9
Update 99_gnu.conf 2022-06-28 12:47:14 +01:00
James Kinsman
4ccc7a4e32
Create 99_gnu.conf 2022-06-28 12:45:31 +01:00
Proto
e9f90f438f
Inactive to match CACHE_MAX_AGE (#139)
* Set innactive time to match the CACHE_MAX_AGE env var
* setup script copy for max age
2021-11-01 12:18:59 +00:00
VibroAxe
51753881f9 Switch to using proxy_cache_lock_age
This allows us to cache the response in the event a file hasn't been downloaded yet
Set to 2m as a really long time to download a single 1m slice from upstream

Based on thoughts from https://github.com/lancachenet/generic/pull/113
2021-10-09 11:07:12 +00:00
VibroAxe
2fa012f667 Ported CACHE_INDEX_SIZE PR from generic
Ported PR https://github.com/lancachenet/generic/pull/103/ from @crabbey
Changes CACHE_MEM_SIZE to CACHE_INDEX_SIZE but maintains backwards compatiblity through deprecation.sh
2021-10-09 10:24:38 +00:00
James Kinsman
425a75c7da
Apply suggestions from code review
Thanks @gotenxiao

Co-authored-by: GotenXiao <gotenxiao@gmail.com>
2021-10-09 00:11:15 +01:00
VibroAxe
d77cfdc601 Exclude steam server status from caching
Implements lancachenet/generic#93 as this is no longer a valid comit after switcheroo
2021-07-20 13:35:05 +00:00
VibroAxe
faa6b3969d Rebase generic off monolithic
This commit rebases the generic code into the monolithic image
This allows the base image to be the more regularly accessed / edited image

Commits to lancachenet/generic:switcheroo will mimic this commit

Also fixes lancachenet/generic#108
2021-07-20 12:04:38 +00:00
James Kinsman
f013ac0958
Change maps to allow user agent mapping too (#87)
Correclty disable StrictHostKeyChecking whilst we are at it!
map "$http_useragent---$http_host" $cacheidentifier {
Hostnames in maps file need to be regexs
Save the docker image into the artifacts store to allow download for testing
Need to handle *. wildcard
Use # instead of / as regex/sed seperator to provide a slightly cleaner sed line for debug
Provide comments and breakdown for sed (Requested by @GotenXiao
Changed UA/Host seperator from --- to £££ @rconan suggestion from UKLans chat

Closes #86 See github for details
2020-02-11 15:32:09 +00:00
VibroAxe
66e6e2d366 Updated readying for steamcache/generic 2 2018-12-02 17:19:28 +00:00
VibroAxe
00619cf6d2 Initial Commit 2018-11-29 00:13:51 +00:00