Skip to content

Commit

Permalink
feat: runs uwsgi as non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
norwoodj committed Oct 6, 2021
1 parent 97471d5 commit 8f5453a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/stupidchess-uwsgi.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ NotifyAccess=all
Environment=JCONFIGURE_ACTIVE_PROFILES=RPI
Environment=JCONFIGURE_CONFIG_DIRECTORIES=/opt/stupidchess/config
Environment=SECRETS_VOLUME_PATH=/opt/stupidchess/secrets
User=stupidchess

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions debian/stupidchess-uwsgi.socket
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ PartOf=stupidchess-uwsgi.service
[Socket]
FileDescriptorName=stupidchess-uwsgi
ListenStream=/opt/stupidchess/sockets/stupidchess.sock
SocketUser=stupidchess
SocketGroup=stupidchess

[Install]
WantedBy=sockets.target

0 comments on commit 8f5453a

Please sign in to comment.