Browse Source

use /opt/gitea, not /srv/gitea

v1
AJ ONeal 7 years ago
parent
commit
9c90a87915
  1. 4
      README.md
  2. 10
      dist/etc/systemd/system/gitea.service

4
README.md

@ -11,8 +11,8 @@ Just follow these instructions:
sudo adduser gitea --home /opt/gitea
# Make some other potentially useful directories for that user/group
sudo mkdir -p /opt/gitea/ /var/log/gitea /srv/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea /srv/gitea
sudo mkdir -p /opt/gitea/ /var/log/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
# Download and install gitea
sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-linux-amd64

10
dist/etc/systemd/system/gitea.service

@ -1,7 +1,7 @@
# Pre-req
# sudo adduser gitea --home /opt/gitea
# sudo mkdir -p /srv/gitea/ /opt/gitea/ /var/log/gitea
# sudo chown -R gitea:gitea /srv/gitea/ /opt/gitea/ /var/log/gitea
# sudo mkdir -p /opt/gitea/ /var/log/gitea
# sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
[Unit]
Description=Gitea - Git with a cup of tea. A painless self-hosted Git service.
@ -40,14 +40,14 @@ PrivateDevices=true
ProtectHome=true
# Make /usr, /boot, /etc and possibly some more folders read-only.
ProtectSystem=full
# ... except /srv/gitea because we want a place for the database
# ... except /opt/gitea because we want a place for the database
# and /var/log/gitea because we want a place where logs can go.
# This merely retains r/w access rights, it does not add any new.
# Must still be writable on the host!
ReadWriteDirectories=/srv/gitea /opt/gitea /var/log/gitea
ReadWriteDirectories=/opt/gitea /var/log/gitea
# Note: in v231 and above ReadWritePaths has been renamed to ReadWriteDirectories
; ReadWritePaths=/srv/gitea /opt/gitea /var/log/gitea
; ReadWritePaths=/opt/gitea /var/log/gitea
# The following additional security directives only work with systemd v229 or later.
# They further retrict privileges that can be gained by gitea.

Loading…
Cancel
Save