add env config
This commit is contained in:
parent
c5fa857464
commit
d68e7f45b3
2 changed files with 21 additions and 1 deletions
|
@ -6,4 +6,9 @@ use App\App;
|
|||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
new App('https://uuid.php.fail/')->run();
|
||||
$base = getenv('BASE_URL');
|
||||
if (!is_string($base) || $base === '') {
|
||||
$base = 'https://uuid.php.fail/';
|
||||
}
|
||||
|
||||
new App($base)->run();
|
||||
|
|
15
uuid.container
Normal file
15
uuid.container
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=UUID
|
||||
|
||||
[Container]
|
||||
Image=git.hannover.ccc.de/lubiana/uuid:latest
|
||||
PublishPort=127.0.0.1:8001:8001
|
||||
Environment=SERVER_NAME=:8001
|
||||
Environment=BASE_URL=https://uuid.php.fail/
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Add table
Add a link
Reference in a new issue