Skip to content

Commit

Permalink
Improved consistency of enviromental variables and starting methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-to-the-dee committed Dec 31, 2018
1 parent 2882304 commit 5045cee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ WINDSCRIBE_COUNTRY is completely optional and LOCAL_PORT will need to be changed

You can start docker with [`localproxy.sh`](https://github.com/jay-to-the-dee/Windscribe-HTTPproxy-dockerized/blob/master/localproxy.sh) script for the correct parameters to be passed to Docker.

Or if you have Docker Compose installed you can just do `docker-compose up -d`.
Or if you have Docker Compose installed you can just do `docker-compose up -d` (this is the preferred way).
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ services:
cap_add:
- NET_ADMIN
environment:
- WINDSCRIBE_COUNTRY=${WINDSCRIBE_COUNTRY}
- WINDSCRIBE_USERNAME=${WINDSCRIBE_USERNAME}
- WINDSCRIBE_PASSWORD=${WINDSCRIBE_PASSWORD}
- HOST_PORT=${HOST_PORT:-8888} #Pass for echo purposes
- WINDSCRIBE_COUNTRY=${WINDSCRIBE_COUNTRY}
dns:
- 1.1.1.1
- 1.0.0.1
Expand Down
2 changes: 1 addition & 1 deletion env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ WINDSCRIBE_USERNAME= # Insert Windscribe account username here
WINDSCRIBE_PASSWORD= # Corresponding account password

#Optional
LOCAL_PORT= # Local port number to run HTTP proxy on (8888 is default)
LOCAL_PORT= # Local port number to run HTTP proxy on (8888 is default with docker-compose)
WINDSCRIBE_COUNTRY= # Change VPN server country (Current location as determined by Windscribe is default)
3 changes: 2 additions & 1 deletion localproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ DNS2="1.0.0.1"

docker run --rm -d \
--cap-add=NET_ADMIN \
--env WINDSCRIBE_COUNTRY="$WINDSCRIBE_COUNTRY" \
--env WINDSCRIBE_USERNAME \
--env WINDSCRIBE_PASSWORD \
--env HOST_PORT="$HOST_PORT" \
--env WINDSCRIBE_COUNTRY="$WINDSCRIBE_COUNTRY" \
-p $HOST_PORT:8888 \
--dns "${DNS1}" \
--dns "${DNS2}" \
Expand Down

0 comments on commit 5045cee

Please sign in to comment.