Updated makefile
This commit is contained in:
parent
eed733947c
commit
1b86372042
@ -22,6 +22,10 @@ curl -s https://raw.githubusercontent.com/animenotifier/notify.moe/go/install.sh
|
|||||||
* In your browser, import the file `security/default/rootCA.pem` as a trusted Root authority
|
* In your browser, import the file `security/default/rootCA.pem` as a trusted Root authority
|
||||||
* Open `https://beta.notify.moe`
|
* Open `https://beta.notify.moe`
|
||||||
|
|
||||||
|
## OS restarts
|
||||||
|
|
||||||
|
* If you restart your operating system, run `make ports` to update your port bindings
|
||||||
|
|
||||||
[godoc-image]: https://godoc.org/github.com/animenotifier/notify.moe?status.svg
|
[godoc-image]: https://godoc.org/github.com/animenotifier/notify.moe?status.svg
|
||||||
[godoc-url]: https://godoc.org/github.com/animenotifier/notify.moe
|
[godoc-url]: https://godoc.org/github.com/animenotifier/notify.moe
|
||||||
[travis-image]: https://travis-ci.org/animenotifier/notify.moe.svg?branch=go
|
[travis-image]: https://travis-ci.org/animenotifier/notify.moe.svg?branch=go
|
||||||
|
3
makefile
3
makefile
@ -9,6 +9,7 @@ BUILDPATCHES=@./patches/build.sh
|
|||||||
BUILDBOTS=@./bots/build.sh
|
BUILDBOTS=@./bots/build.sh
|
||||||
TSCMD=@tsc
|
TSCMD=@tsc
|
||||||
IPTABLES=@sudo iptables
|
IPTABLES=@sudo iptables
|
||||||
|
IP6TABLES=@sudo ip6tables
|
||||||
PACK:=$(shell command -v pack 2> /dev/null)
|
PACK:=$(shell command -v pack 2> /dev/null)
|
||||||
RUN:=$(shell command -v run 2> /dev/null)
|
RUN:=$(shell command -v run 2> /dev/null)
|
||||||
GOIMPORTS:=$(shell command -v goimports 2> /dev/null)
|
GOIMPORTS:=$(shell command -v goimports 2> /dev/null)
|
||||||
@ -84,6 +85,8 @@ ports:
|
|||||||
ifeq ($(OSNAME),LINUX)
|
ifeq ($(OSNAME),LINUX)
|
||||||
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
|
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
|
||||||
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 4001
|
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 4001
|
||||||
|
$(IP6TABLES) -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
|
||||||
|
$(IP6TABLES) -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 4001
|
||||||
endif
|
endif
|
||||||
ifeq ($(OSNAME),OSX)
|
ifeq ($(OSNAME),OSX)
|
||||||
@echo "rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 4001" | sudo pfctl -ef -
|
@echo "rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 4001" | sudo pfctl -ef -
|
||||||
|
Loading…
Reference in New Issue
Block a user