libera/#devuan-dev/ Saturday, 2023-09-30

cfxproxyHello, i have an problem with mirror setup i dont know how to setup the rewrite rules in nginx.15:13
cfxproxyHere is my nginx setup:15:14
cfxproxy      location /devuan/merged {15:14
cfxproxy                fancyindex on;15:14
cfxproxy                fancyindex_exact_size off;15:14
cfxproxy                fancyindex_header /index/index.html;15:14
cfxproxy                fancyindex_ignore index lost*;15:14
cfxproxy                rewrite /devuan/merged/pool/DEVUAN/(.*)          /devuan/pool/$1;15:14
cfxproxy                rewrite /devuan/merged/pool/DEBIAN-SECURITY/(.*) /debian-security/pool/$1;15:14
cfxproxy                rewrite /devuan/merged/pool/DEBIAN/(.*)          /debian/pool/$1;15:14
cfxproxy      }15:14
onefangThe nginx stuff in the walktrough didn't help?15:20
onefangI only use apache, no I don't know.15:20
cfxproxyI dont know if it is not caused by my reverse proxy15:20
onefangBTW in the logs looks like you managed to rsync after I fixed my typo.15:21
cfxproxyYes it synced sucessfully15:21
onefangI can stop grepping the logs for your IP now then.15:22
cfxproxyyes15:22
onefangWeekly stats of "6.76% up 91.89% updated"  A good start.15:23
onefangLet's hope someone that knows nginx can help you soon.15:23
cfxproxyi hope too15:24
cfxproxyDo i need an debian repo too?15:32
onefangThe point of the rewrite rules is to redirect apt to an actual Debian mirror for that particular package.  If I recall correctly, you don't have room for a full Debian mirror as well.  Some mirrors do that though.15:36
cfxproxyi will be upgrading my server hard drives to bigger one tomorrow so i will have room for full debian mirror15:38
onefangThen you can ignore the rewrite rules and just serve the Debian packages yourself.  I did spot that you already had a few other repos.15:39
bb|hcbHuh, cfxproxy left... From what I see above - the rewrite rules are for local debian repo16:28
bb|hcbWithout a local one, there is also an example in the walkthrough:16:30
bb|hcbrewrite /devuan/merged/pool/DEVUAN/(.*)          /devuan/pool/$1;16:30
bb|hcbrewrite /devuan/merged/pool/DEBIAN/(.*) http://deb.debian.org/debian/pool/$116:31
bb|hcbrewrite /devuan/merged/pool/DEBIAN-SECURITY/(.*) http://deb.debian.org/debian-security/pool/$116:31
onefangThe walkthrough was the first thing I said.  lol16:32
bb|hcbThere are two types of rules in the walkthough - some assume /devuan/merged and others assume /merged16:33
bb|hcbIt is a little bit confising16:33
bb|hcbWhat is the public url of the mirror?16:33
onefanghttps://mirrors.cfe.re/devuan16:34
onefangI'm supposedly in weekend mode, trying hard not to do anything that looks like work.  So I didn't investigate much more than look at the top level results of apt-panopticon.16:35
bb|hcbIn this case first redirect should be rewrite /devuan/merged/pool/DEVUAN/(.*) /devuan/devuan/pool/$1;16:38
bb|hcbHope cfxproxy reads the log :)16:40

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!