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
081f0eb6
Commit
081f0eb6
authored
Aug 15, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs
parent
a341564c
Pipeline
#15614
passed with stages
in 7 minutes and 34 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
3 deletions
+32
-3
.gitignore
.gitignore
+1
-0
README.md
README.md
+29
-1
src/site.ts
src/site.ts
+2
-2
No files found.
.gitignore
View file @
081f0eb6
...
@@ -36,3 +36,4 @@ lerna-debug.log*
...
@@ -36,3 +36,4 @@ lerna-debug.log*
/data
/data
/output
/output
/config.yaml
/config.yaml
/test
README.md
View file @
081f0eb6
# nginx-proxy
# nginx-proxy
Nginx with only env var conf
Nginx with only env var conf.
\ No newline at end of file
## Variables
### Site
Site variables should be followed after
`SITE_<domain>_`
.
-
`SITE_mycard.moe`
Site and origin. eg.
`SITE_mycard.moe=http://localhost:3000`
-
`PORT`
-
`HTTPS`
Enable HTTPS and specify cert.
-
`HTTPS_NOREDIR`
Disable redirect to HTTPS.
-
`HSTS`
Enable HSTS.
-
`HEADER`
Extra header. eg.
`SITE_mycard.moe_HEADER_FOO=bar`
-
`MINIO`
Enable minio mode.
-
`DISABLE_TOP`
Disable / access.
-
`NO_VERIFY_CERTS`
-
`NO_BUFFER`
Add
`proxy_buffering off;`
to nginx conf.
-
`NO_CACHE`
Add
`proxy_cache off;`
to nginx conf.
-
`TIMEOUT`
in seconds.
-
`SERVER_EXTRA`
Extra entry in
`server`
.
-
`LOCATION_EXTRA`
Extra entry in
`location`
.
### Global
-
`PURGE_ALLOWED`
IPs allowed to do PURGE request.
-
`REAL_IP`
IPs allowed to send
`X-Forwarded-For`
header.
-
`LIMIT_RATE`
`LIMIT_BURST`
`MAX_CACHE_SIZE`
in original format. eg.
`LIMIT_RATE=10m`
-
`HTTP_EXTRA`
Extra entry in
`http`
section.
\ No newline at end of file
src/site.ts
View file @
081f0eb6
...
@@ -53,14 +53,14 @@ function getSiteData(
...
@@ -53,14 +53,14 @@ function getSiteData(
if
(
httpsCert
)
{
if
(
httpsCert
)
{
https
=
{
https
=
{
cert
:
httpsCert
,
cert
:
httpsCert
,
ports
:
parser
.
getArrayNumber
(
'
HTTPS_PORT
S
'
)
||
[
443
],
ports
:
parser
.
getArrayNumber
(
'
HTTPS_PORT
'
)
||
[
443
],
redirect
:
!
parser
.
getBoolean
(
'
HTTPS_NOREDIR
'
),
redirect
:
!
parser
.
getBoolean
(
'
HTTPS_NOREDIR
'
),
hsts
:
parser
.
getBoolean
(
'
HSTS
'
),
hsts
:
parser
.
getBoolean
(
'
HSTS
'
),
};
};
}
}
return
{
return
{
domains
:
domain
.
split
(
'
+
'
),
domains
:
domain
.
split
(
'
+
'
),
ports
:
parser
.
getArrayNumber
(
'
PORT
S
'
)
||
[
80
],
ports
:
parser
.
getArrayNumber
(
'
PORT
'
)
||
[
80
],
https
,
https
,
headers
:
Object
.
entries
(
parser
.
getDict
(
'
HEADER
'
)).
map
(([
name
,
value
])
=>
({
headers
:
Object
.
entries
(
parser
.
getDict
(
'
HEADER
'
)).
map
(([
name
,
value
])
=>
({
name
:
name
.
replace
(
/_/g
,
'
-
'
),
name
:
name
.
replace
(
/_/g
,
'
-
'
),
...
...
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