15 lines
355 B
Bash
15 lines
355 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
MATTERMOST_REMOTE="https://mattermost.zeus.gent"
|
||
|
|
||
|
|
||
|
if [[ $MATTERMOST_REMOTE == */ ]]; then
|
||
|
echo "MATTERMOST_REMOTE should not end with a slash (it should only the protocol and the domain; no path)" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cd "$(dirname "$0")"
|
||
|
|
||
|
python3 -m "http.server" >/dev/null 2>&1 &
|
||
|
mitmproxy -s etc/mitm_cors.py -m "reverse:$MATTERMOST_REMOTE"
|