mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-02 01:46:47 +00:00
a4c5d43ff7
Change-Id: I9a4f7690e98313d003a2fec35324ed70556e6461
7 lines
210 B
Bash
Executable file
7 lines
210 B
Bash
Executable file
#!/bin/sh
|
|
# redirect port 80 to unprivileged port 8000
|
|
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
|
|
|
|
# run the server as non-privileged user
|
|
nohup sudo -u nobody node server.js &
|