Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
7141efad
Commit
7141efad
authored
10 months ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
also https for devlopment apps
parent
3aa1d605
No related branches found
Branches containing commit
No related tags found
1 merge request
!2220
also https for devlopment apps
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
metager/app/Providers/AppServiceProvider.php
+1
-1
1 addition, 1 deletion
metager/app/Providers/AppServiceProvider.php
metager/bootstrap/app.php
+10
-8
10 additions, 8 deletions
metager/bootstrap/app.php
metager/routes/session.php
+1
-1
1 addition, 1 deletion
metager/routes/session.php
with
12 additions
and
10 deletions
metager/app/Providers/AppServiceProvider.php
+
1
−
1
View file @
7141efad
...
@@ -13,7 +13,7 @@ class AppServiceProvider extends ServiceProvider
...
@@ -13,7 +13,7 @@ class AppServiceProvider extends ServiceProvider
public
function
boot
():
void
public
function
boot
():
void
{
{
config
([
"app.locale"
=>
"default"
]);
config
([
"app.locale"
=>
"default"
]);
if
(
app
()
->
environment
(
"production"
))
{
if
(
app
()
->
environment
(
"production"
)
||
app
()
->
environment
(
"development"
)
)
{
\URL
::
forceScheme
(
"https"
);
\URL
::
forceScheme
(
"https"
);
}
}
\Prometheus\Storage\Redis
::
setDefaultOptions
(
\Prometheus\Storage\Redis
::
setDefaultOptions
(
...
...
This diff is collapsed.
Click to expand it.
metager/bootstrap/app.php
+
10
−
8
View file @
7141efad
...
@@ -6,6 +6,7 @@ use App\Http\Middleware\HttpCache;
...
@@ -6,6 +6,7 @@ use App\Http\Middleware\HttpCache;
use
Illuminate\Foundation\Application
;
use
Illuminate\Foundation\Application
;
use
Illuminate\Foundation\Configuration\Exceptions
;
use
Illuminate\Foundation\Configuration\Exceptions
;
use
Illuminate\Foundation\Configuration\Middleware
;
use
Illuminate\Foundation\Configuration\Middleware
;
use
Illuminate\Http\Middleware\TrustProxies
;
return
Application
::
configure
(
basePath
:
dirname
(
__DIR__
))
return
Application
::
configure
(
basePath
:
dirname
(
__DIR__
))
->
withRouting
(
->
withRouting
(
...
@@ -14,14 +15,6 @@ return Application::configure(basePath: dirname(__DIR__))
...
@@ -14,14 +15,6 @@ return Application::configure(basePath: dirname(__DIR__))
health
:
'/up'
,
health
:
'/up'
,
)
)
->
withMiddleware
(
function
(
Middleware
$middleware
)
{
->
withMiddleware
(
function
(
Middleware
$middleware
)
{
$middleware
->
trustProxies
(
at
:
[
'10.0.0.0/8'
,
'172.16.0.0/12'
,
'192.168.0.0/16'
,
'144.76.113.134'
,
'144.76.88.77'
,
'167.233.15.225'
,
]);
$middleware
->
use
([
$middleware
->
use
([
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode
::
class
,
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode
::
class
,
\Illuminate\Http\Middleware\HandleCors
::
class
,
\Illuminate\Http\Middleware\HandleCors
::
class
,
...
@@ -29,6 +22,15 @@ return Application::configure(basePath: dirname(__DIR__))
...
@@ -29,6 +22,15 @@ return Application::configure(basePath: dirname(__DIR__))
\Illuminate\Foundation\Http\Middleware\ValidatePostSize
::
class
,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize
::
class
,
\App\Http\Middleware\TrimStrings
::
class
,
\App\Http\Middleware\TrimStrings
::
class
,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull
::
class
,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull
::
class
,
TrustProxies
::
class
,
]);
$middleware
->
trustProxies
(
at
:
[
'10.0.0.0/8'
,
'172.16.0.0/12'
,
'192.168.0.0/16'
,
'144.76.113.134'
,
'144.76.88.77'
,
'167.233.15.225'
,
]);
]);
$middleware
->
remove
([
$middleware
->
remove
([
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse
::
class
,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse
::
class
,
...
...
This diff is collapsed.
Click to expand it.
metager/routes/session.php
+
1
−
1
View file @
7141efad
...
@@ -27,7 +27,7 @@ Route::group(['middleware' => $auth_middleware, 'prefix' => 'admin'], function (
...
@@ -27,7 +27,7 @@ Route::group(['middleware' => $auth_middleware, 'prefix' => 'admin'], function (
Route
::
get
(
Route
::
get
(
'ip'
,
'ip'
,
function
(
Request
$request
)
{
function
(
Request
$request
)
{
dd
(
$request
->
ip
(),
$_SERVER
[
"AGENT"
]);
dd
(
$request
->
ip
(),
$_SERVER
[
"AGENT"
]
,
$request
->
headers
);
}
}
);
);
Route
::
get
(
'bot'
,
'HumanVerification@botOverview'
)
->
name
(
"admin_bot"
);
Route
::
get
(
'bot'
,
'HumanVerification@botOverview'
)
->
name
(
"admin_bot"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment