On Sat, 24 Feb 2018 10:57:58 -0800
Scott Doctor <sc...@scottdoctor.com> wrote:

> I am trying to setup an internet server for one of my projects 
> that I am going to make open source using fossil. I have a new 
> Linode server account with a clean install (and fully updated) 
> of debian and nginx with letsencrypt https working properly. I 
> am having trouble getting fossil to work.
> 
> Is there a step-by-step how to get fossil to work from an 
> internet page?
> My website I am trying to do this on is:
> 

If you have working nginx with https, the remaining is straightforward:

1. Make fossil to work like a scgi server. I have done it through systemd 
service;

1.1 create file "/etc/systemd/system/fossil.service" with the following text:

[Unit]
Description=Fossil scm SCGI script.
After=network.target network-online.target nss-lookup.target nginx.service

[Service]
Type=simple
User=THE_USER_YOU_WANT
WorkingDirectory=/DOCUMENT_ROOT/fossil/
ExecStart=/usr/bin/fossil server /DOCUMENT_ROOT/fossil/ --scgi --localhost 
--port 9000 --repolist
Restart=on-failure

[Install]
WantedBy=nginx.service

1.2 Execute:

$sudo systemctl enable fossil
$sudo systemctl start fossil

2. Configure nginx. 

Include in the server{} section of your config file:

location /fossil/ {
  scgi_pass 127.0.0.1:9000;
  include scgi_params;
  scgi_param SCRIPT_NAME "/fossil"; 
  client_max_body_size 20M;
}

3. Now every .fossil repo, located in the /fossil/ directory will be accessible 
on:

https://your.web.site/fossil/repo_name/



Hope will be helpful.
Regards

-- 
http://fresh.flatassembler.net
http://asm32.info
John Found <johnfo...@asm32.info>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to