Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Wed, Aug 3, 2016 at 6:08 AM, John Foundwrote: > > Well, I was actually wrong. fcgiwrap actually *can* wrap bash cgi scripts > (and also, perl, etc.) > So, the problem is solved and I can recommend using fcgiwrap tool for > hosting fossil repositories > on high performance web servers without CGI support, like nginx and rwasa. Another, possibly better, option occurred to me. If the webserver supports it, configure it to "pass through" to Fossil and run Fossil in server mode. Essentially, the webserver would be acting as a proxy server for the base URL for Fossil. ( I recall seeing something about how to configure Fossil to operate from behind a proxy) ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Tue, 2 Aug 2016 19:46:12 +0300 John Foundwrote: > On Tue, 2 Aug 2016 14:43:11 +0300 > John Found wrote: > > > Indeed, I found very similar tool "fcgiwrap": > > https://github.com/gnosek/fcgiwrap > > Will try to use it to wrap fossil in CGI mode, as long as the SCGI mode of > > fossil > > is very similar wrapper, only built-in. One layer less is always good IMHO. > > > > But fcgiwrap can't wrap bash scripts. Only binaries, only hardcore. :) > So, is it possible to use fossil in CGI mode without wrapping it with bash > CGI script? > Well, I was actually wrong. fcgiwrap actually *can* wrap bash cgi scripts (and also, perl, etc.) So, the problem is solved and I can recommend using fcgiwrap tool for hosting fossil repositories on high performance web servers without CGI support, like nginx and rwasa. -- http://fresh.flatassembler.net http://asm32.info John Found ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On 8/2/16, John Foundwrote: > > But how to make web server run fossil with command line arguments? > Some wrapper is still needed, or I am missing something? > I'm trying to come with documentation to better explain how that works. My *first draft* is currently up at https://www.fossil-scm.org/fossil/doc/trunk/www/aboutcgi.wiki and let me know if it helps any. Remember that the document is a work-in-progress. -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Tue, 2 Aug 2016 12:54:58 -0400 Richard Hippwrote: > On 8/2/16, John Found wrote: > > > So, is it possible to use fossil in CGI mode without wrapping it with bash > > CGI script? > > > > Simply run "fossil cgi FILE" where FILE is the name of a configuration > file. FILE should look like this: > > repository: /home/of/your/repository.fossil > > Other lines are possible, but the above is sufficient to get you > started. Probably this deserves to be better documented > But how to make web server run fossil with command line arguments? Some wrapper is still needed, or I am missing something? > -- > D. Richard Hipp > d...@sqlite.org > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- http://fresh.flatassembler.net http://asm32.info John Found ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On 8/2/16, Richard Hippwrote: > > Simply run "fossil cgi FILE" where FILE is the name of a configuration > file. FILE should look like this: > > repository: /home/of/your/repository.fossil > > Other lines are possible, but the above is sufficient to get you > started. Probably this deserves to be better documented Slightly improved documentation here: https://www.fossil-scm.org/fossil/help?cmd=cgi -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On 8/2/16, John Foundwrote: > So, is it possible to use fossil in CGI mode without wrapping it with bash > CGI script? > Simply run "fossil cgi FILE" where FILE is the name of a configuration file. FILE should look like this: repository: /home/of/your/repository.fossil Other lines are possible, but the above is sufficient to get you started. Probably this deserves to be better documented -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Tue, 2 Aug 2016 14:43:11 +0300 John Foundwrote: > Indeed, I found very similar tool "fcgiwrap": > https://github.com/gnosek/fcgiwrap > Will try to use it to wrap fossil in CGI mode, as long as the SCGI mode of > fossil > is very similar wrapper, only built-in. One layer less is always good IMHO. > But fcgiwrap can't wrap bash scripts. Only binaries, only hardcore. :) So, is it possible to use fossil in CGI mode without wrapping it with bash CGI script? -- http://fresh.flatassembler.net http://asm32.info John Found ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Tue, 2 Aug 2016 07:34:07 -0400 Adam Jensenwrote: > On 08/02/2016 05:00 AM, Richard Hipp wrote: > > On 8/2/16, John Found wrote: > >> I have to move my web site on a server that supports only FastCGI > >> interface. > >> Is there an easy way to host fossil repositories on it? > > > > Fossil only support CGI and SCGI. What web server are you running > > that has only FastCGI support. > > > > When I was looking into alternatives to plain old CGI, I found that > > the FastCGI protocol was very complex and hard to implement, whereas > > SCGI was quite simple. So I took the simpler approach. Are there > > some advantages to FastCGI that I am unaware of? > > > > OpenBSD's [httpd][1] is another FastCGI-only serer. > > [1]: http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/httpd.8 > > They use a FastCGI to CGI wrapper server (named [slowcgi][2]) that > translates FastCGI requests to the CGI protocol. > > [2]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/slowcgi/ Indeed, I found very similar tool "fcgiwrap": https://github.com/gnosek/fcgiwrap Will try to use it to wrap fossil in CGI mode, as long as the SCGI mode of fossil is very similar wrapper, only built-in. One layer less is always good IMHO. > > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- http://fresh.flatassembler.net http://asm32.info John Found ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On 08/02/2016 05:00 AM, Richard Hipp wrote: > On 8/2/16, John Foundwrote: >> I have to move my web site on a server that supports only FastCGI interface. >> Is there an easy way to host fossil repositories on it? > > Fossil only support CGI and SCGI. What web server are you running > that has only FastCGI support. > > When I was looking into alternatives to plain old CGI, I found that > the FastCGI protocol was very complex and hard to implement, whereas > SCGI was quite simple. So I took the simpler approach. Are there > some advantages to FastCGI that I am unaware of? > OpenBSD's [httpd][1] is another FastCGI-only serer. [1]: http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/httpd.8 They use a FastCGI to CGI wrapper server (named [slowcgi][2]) that translates FastCGI requests to the CGI protocol. [2]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/slowcgi/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On 8/2/16, Stephan Bealwrote: > > As i recall (but it's been 6 or 8 years), FastCGI works by starting a > single app instance and piping CGI data through it multiple times (for > multiple requests). If that's the case... Fossil relies on the app shutting > down to free memory, and would be incompatible with such a mechanism. Also, > IIRC, FastCGI provides drop-in "replacements" of the read() and write() > calls via macros, but use the wrong signature for (IIRC) the write() > routine (they use a non-const pointer for the source memory, whereas the > real API uses a const one). SCGI works the same way - it opens a socket to a persistent process and sends multiple requests over to the process. Fossil handles this the same way it handles the "fossil server" command. There is one persistent process that does nothing but accept SCGI requests. For each request, that process forks a separate child to service that request. You can see this better by noting that there is no "fossil scgi" command, but rather a "--scgi" switch on the "fossil server" command. The same logic that deals with HTTP requests also deals with SCGI requests - it just understands a different protocol. Were we to add FastCGI capabilities to Fossil, no doubt there would be yet another "--fastcgi" option on the "fossil server" command. -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Tue, Aug 2, 2016 at 11:12 AM, John Foundwrote: > On Tue, 2 Aug 2016 05:00:42 -0400 > Richard Hipp wrote: > > > On 8/2/16, John Found wrote: > > > I have to move my web site on a server that supports only FastCGI > interface. > > > Is there an easy way to host fossil repositories on it? > > > > Fossil only support CGI and SCGI. What web server are you running > > that has only FastCGI support. > > The server is RWASA: https://2ton.com.au/rwasa/ As i recall (but it's been 6 or 8 years), FastCGI works by starting a single app instance and piping CGI data through it multiple times (for multiple requests). If that's the case... Fossil relies on the app shutting down to free memory, and would be incompatible with such a mechanism. Also, IIRC, FastCGI provides drop-in "replacements" of the read() and write() calls via macros, but use the wrong signature for (IIRC) the write() routine (they use a non-const pointer for the source memory, whereas the real API uses a const one). -- - stephan beal http://wanderinghorse.net/home/stephan/ "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On Tue, 2 Aug 2016 05:00:42 -0400 Richard Hippwrote: > On 8/2/16, John Found wrote: > > I have to move my web site on a server that supports only FastCGI interface. > > Is there an easy way to host fossil repositories on it? > > Fossil only support CGI and SCGI. What web server are you running > that has only FastCGI support. The server is RWASA: https://2ton.com.au/rwasa/ > > When I was looking into alternatives to plain old CGI, I found that > the FastCGI protocol was very complex and hard to implement, whereas > SCGI was quite simple. So I took the simpler approach. Are there > some advantages to FastCGI that I am unaware of? > Recently I implemented FastCGI framework in assembly language (after long wandering about SCGI and FastCGI). Yes, it is more complex, but is more flexible as well. > -- > D. Richard Hipp > d...@sqlite.org -- http://fresh.flatassembler.net http://asm32.info John Found ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?
On 8/2/16, John Foundwrote: > I have to move my web site on a server that supports only FastCGI interface. > Is there an easy way to host fossil repositories on it? Fossil only support CGI and SCGI. What web server are you running that has only FastCGI support. When I was looking into alternatives to plain old CGI, I found that the FastCGI protocol was very complex and hard to implement, whereas SCGI was quite simple. So I took the simpler approach. Are there some advantages to FastCGI that I am unaware of? -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users