upadted psiphon.config, run script, README
This commit is contained in:
@@ -24,13 +24,13 @@ git clone https://github.com/swarupsengupta2007/psiphon-docker
|
|||||||
TARGETS="linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6"
|
TARGETS="linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6"
|
||||||
|
|
||||||
# Create a builder instance if it doesn't exist
|
# Create a builder instance if it doesn't exist
|
||||||
sudo docker buildx create --name cross-platform --platform ${TARGETS} --use
|
docker buildx create --name cross-platform --platform ${TARGETS} --use
|
||||||
|
|
||||||
# Build for current platform and load to docker image
|
# Build for current platform and load to docker image
|
||||||
sudo docker buildx build -t <your_tag> . --load
|
docker buildx build -t <your_tag> . --load
|
||||||
|
|
||||||
# build for multi-arch and push to registry
|
# build for multi-arch and push to registry
|
||||||
sudo docker buildx build --build-arg TARGETS=${TARGETS} -t <your_username>/<your_tag> \
|
docker buildx build --build-arg TARGETS=${TARGETS} -t <your_username>/<your_tag> \
|
||||||
--platform ${TARGETS} . --push
|
--platform ${TARGETS} . --push
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -63,8 +63,13 @@ services:
|
|||||||
|
|
||||||
## Using docker-cli <br>
|
## Using docker-cli <br>
|
||||||
```bash
|
```bash
|
||||||
sudo docker run --name psiphon -d -p 8080:8080 -p 1080:1080 \
|
docker run -d \
|
||||||
-v /home/swarup/psiphon/config/:/config swarupsengupta2007/psiphon
|
--name psiphon \
|
||||||
|
--restart=unless-stopped \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-p 1080:1080 \
|
||||||
|
-v /home/swarup/psiphon/config/:/config \
|
||||||
|
swarupsengupta2007/psiphon
|
||||||
```
|
```
|
||||||
|
|
||||||
The following Environment var are available<br>
|
The following Environment var are available<br>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
#!/usr/bin/with-contenv sh
|
||||||
|
|
||||||
[[ ! -f ${DEF_CONFIG}/psiphon.config ]] && cp ${DEF_DEFAULTS}/psiphon.config ${DEF_CONFIG}/
|
[[ ! -f ${DEF_CONFIG}/psiphon.config ]] && cp ${DEF_DEFAULTS}/psiphon.config ${DEF_CONFIG}/
|
||||||
[[ ! -d ${DEF_CONFIG}/osl ]] && mkdir ${DEF_CONFIG}/osl
|
|
||||||
[[ ! -d ${DEF_CONFIG}/remote_server_list ]] && mkdir ${DEF_CONFIG}/remote_server_list
|
chown -R ${DEF_USER}:${DEF_USER} ${DEF_CONFIG}
|
||||||
|
|
||||||
exec s6-setuidgid ${DEF_USER} ${DEF_APP}/psiphon -config ${DEF_CONFIG}/psiphon.config
|
exec s6-setuidgid ${DEF_USER} ${DEF_APP}/psiphon -config ${DEF_CONFIG}/psiphon.config
|
||||||
|
|||||||
+1
-3
@@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
"DataRootDirectory": "/config/",
|
"DataRootDirectory": "/config/",
|
||||||
"DeviceRegion": "US",
|
"DeviceRegion": "IN",
|
||||||
"MigrateDataStoreDirectory": "/config",
|
"MigrateDataStoreDirectory": "/config",
|
||||||
"MigrateObfuscatedServerListDownloadDirectory": "/config/osl",
|
|
||||||
"MigrateRemoteServerListDownloadFilename": "/config/remote_server_list",
|
|
||||||
"ListenInterface": "any",
|
"ListenInterface": "any",
|
||||||
"LocalHttpProxyPort": 8080,
|
"LocalHttpProxyPort": 8080,
|
||||||
"LocalSocksProxyPort": 1080,
|
"LocalSocksProxyPort": 1080,
|
||||||
|
|||||||
Reference in New Issue
Block a user