Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nginx-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nginx-proxy
Commits
7f4135d7
Commit
7f4135d7
authored
Jul 27, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add specify sni and host
parent
40fc904e
Pipeline
#22803
passed with stages
in 6 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
src/site.ts
src/site.ts
+6
-1
views/nginx.conf.mustache
views/nginx.conf.mustache
+9
-1
No files found.
src/site.ts
View file @
7f4135d7
...
...
@@ -36,6 +36,8 @@ export interface ProxyRenderData extends SiteRenderData {
noVerifyCerts
?:
boolean
;
noBuffer
?:
boolean
;
sni
?:
boolean
;
sniName
?:
string
;
hostHeader
?:
string
;
noCache
?:
boolean
;
}
...
...
@@ -136,12 +138,15 @@ async function getSiteData(
code
:
parser
.
getNumber
(
'
REDIRECT_CODE
'
)
||
301
,
}
as
RedirectRenderData
;
}
else
{
const
sni
=
parser
.
getString
(
'
SNI
'
);
specificRenderData
=
{
proxy
:
true
,
upstream
:
input
[
`SITE_
${
domain
}
`
],
noVerifyCerts
:
parser
.
getBoolean
(
'
NO_VERIFY_CERTS
'
),
noBuffer
:
parser
.
getBoolean
(
'
NO_BUFFER
'
),
sni
:
parser
.
getBoolean
(
'
SNI
'
),
sni
:
sni
===
'
1
'
,
sniName
:
sni
===
'
1
'
?
undefined
:
sni
,
hostHeader
:
parser
.
getString
(
'
HOST
'
),
noCache
:
parser
.
getBoolean
(
'
NO_CACHE
'
),
minio
:
parser
.
getBoolean
(
'
MINIO
'
),
timeout
:
parser
.
getNumber
(
'
TIMEOUT
'
),
...
...
views/nginx.conf.mustache
View file @
7f4135d7
...
...
@@ -217,7 +217,12 @@ http {
{{/
timeout
}}
{{^
minio
}}
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
{{#
hostHeader
}}
proxy_set_header Host
{{
.
}}
;
{{/
hostHeader
}}
{{^
hostHeader
}}
proxy_set_header Host $host;
{{/
hostHeader
}}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
{{/
minio
}}
...
...
@@ -238,6 +243,9 @@ http {
{{#
sni
}}
proxy_ssl_server_name on;
{{/
sni
}}
{{#
sniName
}}
proxy_ssl_name
{{
.
}}
;
{{/
sniName
}}
{{#
noCache
}}
proxy_cache off;
{{/
noCache
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment