The rss feeds (both rss and atom) generated by hg, links to
commit point to localhost. I tried setting baseurl under web section in hgrc to
hg.fanboy.co.nz and also / but it doesn't seem to have any effect.
you can see them on https://hg.fanboy.co.nz/atom-log and
https://hg.fanboy.co.nz/rss-log
We run nginx as frontend server with uWsgi.
uWsgi config.
#!/usr/bin/env python
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb('/var/repos/adblock')
hgrc config
[web]
baseurl = /
name = Fanboy Adblock
deny_push =
description = Fanboy Adblock List Repo
encoding = UTF-8
I did try setting baseurl to http://hg.fanboy.co.nz but it doesn't work either.
nginx config
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log
logs/host.access.log main;
location / {
uwsgi_pass hg_uwsgi;
include uwsgi_params;
uwsgi_param SCRIPT_NAME /;
uwsgi_param UWSGI_SCRIPT hgweb;
uwsgi_modifier1 30;
}
location /static/ {
rewrite /static/(.*) /$1 break;
root
/usr/local/lib/python2.7/dist-packages/mercurial/templates/static;
expires 30d;
}
upstream hg_uwsgi {
server unix:/var/repos/hg.sock;
}
Any help appreciated.
Thanks.