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
f8d91ca7
Commit
f8d91ca7
authored
Sep 19, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sni support
parent
4f685863
Pipeline
#16736
passed with stages
in 4 minutes
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+1
-0
src/site.ts
src/site.ts
+2
-0
views/nginx.conf.mustache
views/nginx.conf.mustache
+3
-0
No files found.
README.md
View file @
f8d91ca7
...
@@ -19,6 +19,7 @@ Site variables should be followed after `SITE_<domain>_`.
...
@@ -19,6 +19,7 @@ Site variables should be followed after `SITE_<domain>_`.
-
`NO_VERIFY_CERTS`
-
`NO_VERIFY_CERTS`
-
`NO_BUFFER`
Add
`proxy_buffering off;`
to nginx conf.
-
`NO_BUFFER`
Add
`proxy_buffering off;`
to nginx conf.
-
`NO_CACHE`
Add
`proxy_cache off;`
to nginx conf.
-
`NO_CACHE`
Add
`proxy_cache off;`
to nginx conf.
-
`SNI`
Add
`proxy_ssl_server_name on;`
to nginx conf.
-
`TIMEOUT`
in seconds.
-
`TIMEOUT`
in seconds.
-
`SERVER_EXTRA`
Extra entry in
`server`
.
-
`SERVER_EXTRA`
Extra entry in
`server`
.
-
`LOCATION_EXTRA`
Extra entry in
`location`
.
-
`LOCATION_EXTRA`
Extra entry in
`location`
.
...
...
src/site.ts
View file @
f8d91ca7
...
@@ -23,6 +23,7 @@ export interface SiteRenderData {
...
@@ -23,6 +23,7 @@ export interface SiteRenderData {
disableTop
?:
boolean
;
disableTop
?:
boolean
;
noVerifyCerts
?:
boolean
;
noVerifyCerts
?:
boolean
;
noBuffer
?:
boolean
;
noBuffer
?:
boolean
;
sni
?:
boolean
;
noCache
?:
boolean
;
noCache
?:
boolean
;
upstream
:
string
;
upstream
:
string
;
timeout
?:
number
;
timeout
?:
number
;
...
@@ -72,6 +73,7 @@ function getSiteData(
...
@@ -72,6 +73,7 @@ function getSiteData(
disableTop
:
parser
.
getBoolean
(
'
DISABLE_TOP
'
),
disableTop
:
parser
.
getBoolean
(
'
DISABLE_TOP
'
),
noVerifyCerts
:
parser
.
getBoolean
(
'
NO_VERIFY_CERTS
'
),
noVerifyCerts
:
parser
.
getBoolean
(
'
NO_VERIFY_CERTS
'
),
noBuffer
:
parser
.
getBoolean
(
'
NO_BUFFER
'
),
noBuffer
:
parser
.
getBoolean
(
'
NO_BUFFER
'
),
sni
:
parser
.
getBoolean
(
'
SNI
'
),
noCache
:
parser
.
getBoolean
(
'
NO_CACHE
'
),
noCache
:
parser
.
getBoolean
(
'
NO_CACHE
'
),
upstream
:
input
[
`SITE_
${
domain
}
`
],
upstream
:
input
[
`SITE_
${
domain
}
`
],
timeout
:
parser
.
getNumber
(
'
TIMEOUT
'
),
timeout
:
parser
.
getNumber
(
'
TIMEOUT
'
),
...
...
views/nginx.conf.mustache
View file @
f8d91ca7
...
@@ -219,6 +219,9 @@ http {
...
@@ -219,6 +219,9 @@ http {
{{#
noBuffer
}}
{{#
noBuffer
}}
proxy_buffering off;
proxy_buffering off;
{{/
noBuffer
}}
{{/
noBuffer
}}
{{#
sni
}}
proxy_ssl_server_name on;
{{/
sni
}}
{{#
noCache
}}
{{#
noCache
}}
proxy_cache off;
proxy_cache off;
{{/
noCache
}}
{{/
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