mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Merge branch 'master' of github.com:beyondcode/phunnel
This commit is contained in:
@@ -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
9
docker-entrypoint.sh
Normal 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
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user