Merge branch 'master' of github.com:beyondcode/phunnel

This commit is contained in:
Marcel Pociot
2021-06-10 10:15:59 +02:00
5 changed files with 15 additions and 5 deletions

View File

@@ -20,5 +20,6 @@ ENV username=username
ENV password=password ENV password=password
ENV exposeConfigPath=/src/config/expose.php ENV exposeConfigPath=/src/config/expose.php
CMD sed -i "s|username|${username}|g" ${exposeConfigPath} && sed -i "s|password|${password}|g" ${exposeConfigPath} && php expose serve ${domain} --port ${port} --validateAuthTokens COPY docker-entrypoint.sh /usr/bin/
ENTRYPOINT ["/src/expose"] RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]

9
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
sed -i "s|username|${username}|g" ${exposeConfigPath} && sed -i "s|password|${password}|g" ${exposeConfigPath}
if [[ $# -eq 0 ]]; then
exec /src/expose serve ${domain} --port ${port} --validateAuthTokens
else
exec /src/expose "$@"
fi

View File

@@ -34,7 +34,7 @@
The tunnel "{{ subdomain }}" was not found on this Expose server. The tunnel "{{ subdomain }}" was not found on this Expose server.
</p> </p>
<p class="pt-2 text-base"> <p class="pt-2 text-base">
Do you want to host your own Expose server? Check out the <a href="https://sharedwithexpose.com" class="underline">official documentation</a>. Do you want to host your own Expose server? Check out the <a href="https://beyondco.de/docs/expose" class="underline">official documentation</a>.
</p> </p>
</div> </div>
</div> </div>

View File

@@ -31,7 +31,7 @@
<div class="text-dark-blue-800 text-xl pt-16"> <div class="text-dark-blue-800 text-xl pt-16">
<h1 class="text-2xl font-bold">Welcome to Expose</h1> <h1 class="text-2xl font-bold">Welcome to Expose</h1>
<p class="pt-2 text-base"> <p class="pt-2 text-base">
Do you want to host your own Expose server? Check out the <a href="https://sharedwithexpose.com" class="underline">official documentation</a>. Do you want to host your own Expose server? Check out the <a href="https://beyondco.de/docs/expose" class="underline">official documentation</a>.
</p> </p>
</div> </div>
</div> </div>

View File

@@ -75,7 +75,7 @@ class ApiTest extends TestCase
'Content-Type' => 'application/json', 'Content-Type' => 'application/json',
], json_encode([ ], json_encode([
'name' => 'Marcel', 'name' => 'Marcel',
'token' => 'this-is-my-token' 'token' => 'this-is-my-token',
]))); ])));
/** @var Response $response */ /** @var Response $response */