Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM php:8.1-cli
FROM php:8.2-cli

RUN apt-get update
RUN apt-get install -y git libzip-dev zip
RUN apt-get install -y git libzip-dev zip libicu-dev

RUN docker-php-ext-install zip
RUN docker-php-ext-configure intl; \
docker-php-ext-install intl zip; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand All @@ -12,7 +15,7 @@ COPY . /src
WORKDIR /src

# install the dependencies
RUN composer install -o --prefer-dist && chmod a+x expose
RUN composer install -o --prefer-dist && chmod a+x builds/expose-server

ENV port=8080
ENV domain=localhost
Expand Down
88 changes: 43 additions & 45 deletions config/expose-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
|
*/
'memory_limit' => '128M',



/*
|--------------------------------------------------------------------------
| Database
Expand All @@ -26,7 +25,7 @@
'.expose',
'expose.db',
]),

/*
|--------------------------------------------------------------------------
| Validate auth tokens
Expand All @@ -40,7 +39,7 @@
|
*/
'validate_auth_tokens' => false,

/*
|--------------------------------------------------------------------------
| Maximum connection length
Expand All @@ -53,7 +52,7 @@
|
*/
'maximum_connection_length' => 0,

/*
|--------------------------------------------------------------------------
| Maximum number of open connections
Expand All @@ -68,7 +67,7 @@
|
*/
'maximum_open_connections_per_user' => 0,

/*
|--------------------------------------------------------------------------
| Subdomain
Expand All @@ -80,7 +79,7 @@
|
*/
'subdomain' => 'expose',

/*
|--------------------------------------------------------------------------
| Reserved Subdomain
Expand All @@ -91,7 +90,7 @@
|
*/
'reserved_subdomains' => [],

/*
|--------------------------------------------------------------------------
| Subdomain Generator
Expand All @@ -103,7 +102,7 @@
|
*/
'subdomain_generator' => \Expose\Server\SubdomainGenerator\RandomSubdomainGenerator::class,

/*
|--------------------------------------------------------------------------
| Connection Callback
Expand All @@ -115,45 +114,44 @@
|
*/
'connection_callback' => null,



'connection_callbacks' => [
'webhook' => [
'url' => null,
'secret' => null,
],
],

/*
|--------------------------------------------------------------------------
| Users
|--------------------------------------------------------------------------
|
| The admin dashboard of expose is protected via HTTP basic authentication
| Here you may add the user/password combinations that you want to
| accept as valid logins for the dashboard.
|
*/
|--------------------------------------------------------------------------
| Users
|--------------------------------------------------------------------------
|
| The admin dashboard of expose is protected via HTTP basic authentication
| Here you may add the user/password combinations that you want to
| accept as valid logins for the dashboard.
|
*/
'users' => [
'username' => 'secret',
'username' => 'password',
],

/*
|--------------------------------------------------------------------------
| User Repository
|--------------------------------------------------------------------------
|
| This is the user repository, which by default loads and saves all authorized
| users in a SQLite database. You can implement your own user repository
| if you want to store your users in a different store (Redis, MySQL, etc.)
|
*/
|--------------------------------------------------------------------------
| User Repository
|--------------------------------------------------------------------------
|
| This is the user repository, which by default loads and saves all authorized
| users in a SQLite database. You can implement your own user repository
| if you want to store your users in a different store (Redis, MySQL, etc.)
|
*/
'user_repository' => \Expose\Server\UserRepository\DatabaseUserRepository::class,

'subdomain_repository' => \Expose\Server\SubdomainRepository\DatabaseSubdomainRepository::class,

'logger_repository' => \Expose\Server\LoggerRepository\DatabaseLogger::class,

/*
|--------------------------------------------------------------------------
| Messages
Expand All @@ -168,27 +166,27 @@
'resolve_connection_message' => function ($connectionInfo, $user) {
return config('expose-server.messages.message_of_the_day');
},

'message_of_the_day' => 'Thank you for using expose.',

'invalid_auth_token' => 'Authentication failed. Please check your authentication token and try again.',

'subdomain_taken' => 'The chosen subdomain :subdomain is already taken. Please choose a different subdomain.',

'subdomain_reserved' => 'The chosen subdomain :subdomain is not available. Please choose a different subdomain.',

'custom_subdomain_unauthorized' => 'You are not allowed to specify custom subdomains. Please upgrade to Expose Pro. Assigning a random subdomain instead.',

'custom_domain_unauthorized' => 'You are not allowed to use this custom domain. If you think this should work, double-check the server setting and try again.',

'maximum_connection_length_reached' => 'You have reached the maximum connection length for this server. Please upgrade to Expose Pro for unlimited connection length.',
],

'statistics' => [
'enable_statistics' => true,

'interval_in_seconds' => 3600,

'repository' => \Expose\Server\StatisticsRepository\DatabaseStatisticsRepository::class,
],
];
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ version: "3.7"
services:
expose:
image: beyondcodegmbh/expose-server:latest
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
Expand Down