| cfxproxy | Hello, i have an problem with mirror setup i dont know how to setup the rewrite rules in nginx. | 15:13 |
|---|---|---|
| cfxproxy | Here 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 |
| onefang | The nginx stuff in the walktrough didn't help? | 15:20 |
| onefang | I only use apache, no I don't know. | 15:20 |
| cfxproxy | I dont know if it is not caused by my reverse proxy | 15:20 |
| onefang | BTW in the logs looks like you managed to rsync after I fixed my typo. | 15:21 |
| cfxproxy | Yes it synced sucessfully | 15:21 |
| onefang | I can stop grepping the logs for your IP now then. | 15:22 |
| cfxproxy | yes | 15:22 |
| onefang | Weekly stats of "6.76% up 91.89% updated" A good start. | 15:23 |
| onefang | Let's hope someone that knows nginx can help you soon. | 15:23 |
| cfxproxy | i hope too | 15:24 |
| cfxproxy | Do i need an debian repo too? | 15:32 |
| onefang | The 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 |
| cfxproxy | i will be upgrading my server hard drives to bigger one tomorrow so i will have room for full debian mirror | 15:38 |
| onefang | Then 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|hcb | Huh, cfxproxy left... From what I see above - the rewrite rules are for local debian repo | 16:28 |
| bb|hcb | Without a local one, there is also an example in the walkthrough: | 16:30 |
| bb|hcb | rewrite /devuan/merged/pool/DEVUAN/(.*) /devuan/pool/$1; | 16:30 |
| bb|hcb | rewrite /devuan/merged/pool/DEBIAN/(.*) http://deb.debian.org/debian/pool/$1 | 16:31 |
| bb|hcb | rewrite /devuan/merged/pool/DEBIAN-SECURITY/(.*) http://deb.debian.org/debian-security/pool/$1 | 16:31 |
| onefang | The walkthrough was the first thing I said. lol | 16:32 |
| bb|hcb | There are two types of rules in the walkthough - some assume /devuan/merged and others assume /merged | 16:33 |
| bb|hcb | It is a little bit confising | 16:33 |
| bb|hcb | What is the public url of the mirror? | 16:33 |
| onefang | https://mirrors.cfe.re/devuan | 16:34 |
| onefang | I'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|hcb | In this case first redirect should be rewrite /devuan/merged/pool/DEVUAN/(.*) /devuan/devuan/pool/$1; | 16:38 |
| bb|hcb | Hope cfxproxy reads the log :) | 16:40 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!