User Tools


server:stagit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
server:stagit [2025/08/24 07:34] – [stagit (local side)] marlonivoserver:stagit [2025/08/24 07:36] (current) – [Cloning] marlonivo
Line 74: Line 74:
 </code> </code>
  
-Set the right permissions for the whole directory, ''%%www-data%%'' for nginx and ''%%git%%'' for git:+Set the right permissions for the complete directory, ''%%www-data%%'' for nginx and ''%%git%%'' for git:
 <code> <code>
 chown -R git:www-data /var/www/stagit  chown -R git:www-data /var/www/stagit 
Line 156: Line 156:
  
 [Service] [Service]
-ExecStart=/usr/bin/git daemon \+ExecStart=/usr/bin/git-daemon \
   --base-path=/var/www/stagit/repos \   --base-path=/var/www/stagit/repos \
   --export-all \   --export-all \
Line 176: Line 176:
 </code> </code>
  
-Then open port 9418 in your firewall:+Then open port 9418 in your firewall to let anyone clone your repo:
 <code> <code>
 sudo ufw allow 9418/tcp sudo ufw allow 9418/tcp