mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 02:16:51 +00:00
7 lines
210 B
Bash
7 lines
210 B
Bash
|
#!/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 &
|