This is the first time I am using nginx so I am learning this as
I go.
A couple of questions. Under your 1.1 the [service] section,
what do I use for THE_USER_YOU_WANT since the access will be
from the internet?
The default location for web pages isĀ /var/www/html/
is this what I should use for DOCUMENT_ROOT?
I assume from the ExecStart I should place the fossil executable
in /usr/bin,
correct?
If I reboot the server, is it necessary for me to login and
manually start by your 1.2 Execute commands?
I assume the config file you refer in your 1.2 is the
/etc/nginx/nginx.conf
Correct?
the file has three declared server sections, each follows each.
Do these catenate? or does each one have a specific use?
simply, which one am I supposed to insert the location stuff?
-------------------------
Scott Doctor [email protected] -------------------------
On 3/3/2018 15:17, John Found wrote
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
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users