Skip to content

Commit

Permalink
chore: automated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
munja committed Aug 5, 2022
1 parent fac6365 commit 0f5064f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions content/posts/sasjs-server-on-vps.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,20 @@ echo "PROTOCOL=https" >> .env
echo "CERT_CHAIN=/opt/certificates/fullchain.pem" >> .env
echo "PRIVATE_KEY=/opt/certificates/privkey.pem" >> .env

# enable api-linux to run on port 443
# re-run whenever SASjs Server is re-installed
setcap 'cap_net_bind_service=+ep' /home/sasjssrv/api-linux

# Create a handy refresh script to update SASjs Server
cat > refreshSASjs.sh <<EOL
#bin/bash
curl -L https://github.com/sasjs/server/releases/latest/download/linux.zip > linux.zip
unzip -o linux.zip
setcap 'cap_net_bind_service=+ep' /home/sasjssrv/api-linux
EOL
chmod 774 refreshSASjs.sh

# enable api-linux to run on port 443
# re-run whenever SASjs Server is re-installed
setcap 'cap_net_bind_service=+ep' /home/sasjssrv/api-linux

```

That's the setup. Now, the launch - using the designated system account. Be aware that anyone running code or Stored Programs will be executing under this OS identity.
Expand Down

0 comments on commit 0f5064f

Please sign in to comment.