Skip to content

Commit

Permalink
securing .gitconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
vickeykumar committed May 15, 2024
1 parent e3184b1 commit 2921c6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/gotty.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ Environment="GOPATH=/opt/gotty/"
Environment="GOPATH=/opt/gotty/"
Environment="GCC_EXEC_PREFIX=/usr/lib/gcc/"
Environment="GODEBUG=cgocheck=0"
PermissionsStartOnly=true
ExecStartPre=-+/bin/mkdir /sys/fs/cgroup/systemd
ExecStartPre=-+/bin/mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
ExecStartPre=-+/bin/chgrp -R cgroupusers /sys/fs/cgroup
ExecStartPre=-+/bin/chmod -R u=rwx,g=rwx /sys/fs/cgroup
ExecStartPre=-+/bin/chmod 4755 /usr/bin/nsenter
ExecStartPre=-+/bin/chmod 644 /opt/gotty/.gitconfig
ExecStart=/usr/local/bin/gotty -w --max-connection 2564 --port 80 --title-format "<fmt><title>{{ .command }}</title><jid>{{ encodePID .pid }}</jid></fmt>"
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/chmod 400 /opt/gotty/.gitconfig
ExecStop=/usr/bin/pkill gotty
LimitNOFILE=4096
#to be filled by environment variables
Expand Down

0 comments on commit 2921c6e

Please sign in to comment.