Learn more about these different git repos.
Other Git URLs
0a27699
@@ -1,6 +1,7 @@
server {
listen 5002;
listen [::]:5002;
+ server_tokens off;
I have no problem with this but can you please describe the reason behind it in the commit message? Just so that nobody accidentally removes it in the future as not-needed.
I think it is unrelated to the missing repositories issue.
server_name localhost;
charset utf-8;
@@ -23,4 +23,6 @@
RUN echo "AliasMatch \"/repo(/.*)/md5(/.*)\" \"/var/lib/dist-git/cache/lookaside\\$1\\$2\"" >> /etc/httpd/conf.d/dist-git/lookaside-copr.conf && \
echo "Alias /repo/ /var/lib/dist-git/cache/lookaside/" >> /etc/httpd/conf.d/dist-git/lookaside-copr.conf
+ RUN echo "scan-path=/var/lib/dist-git/git/" >> /etc/cgitrc
+
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]
Nit fix 1. fix distgit-http no repositories found issue 2. cancel displaying nginx version for security concern
Build succeeded.
Thank you for the PR @tommylike.
What do you think about doing something like
RUN echo "scan-path=/var/lib/dist-git/git/" >> /etc/cgitrc
in the Dockerfile, so we don't have to add the whole cgitrc file?
rebased onto e3b4ca94d4a761a2ed93ff2ab323a67a4170cbb3
@frostyx done, thanks
I know I am nitpicking, sorry about that. That multi-line RUN previously modified only the lookaside-copr.conf Can you please add the RUN echo "scan-path=/var/lib/dist-git/git/" >> /etc/cgitrc as a separate step? I think it will be more understandable this way.
lookaside-copr.conf
Also, please update the commit message for something reasonable :-), e.g.
docker: fix 'no repositories found' issue and hide nginx version
The commit message description is fine, only the title needs a rewrite.
Overall it looks good though, thank you for the PR!
rebased onto 0a27699
@frostyx sure, done.
Perfect @tommylike, thank you very much.
+1
Commit 65ea886 fixes this pull-request
Pull-Request has been merged by praiskup
I have no problem with this but can you please describe the reason
behind it in the commit message? Just so that nobody accidentally
removes it in the future as not-needed.
I think it is unrelated to the missing repositories issue.