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
92f5010b
Commit
92f5010b
authored
Apr 13, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add PHP_EXTRA
parent
31e8b717
Pipeline
#21211
passed with stages
in 12 minutes and 56 seconds
Changes
3
Pipelines
1
Hide 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 @
92f5010b
...
@@ -44,6 +44,7 @@ Use `SITE_mycard.moe: php://fpm.example.com:9000/path/to/site`.
...
@@ -44,6 +44,7 @@ Use `SITE_mycard.moe: php://fpm.example.com:9000/path/to/site`.
-
`INDEX`
Specify index file. Default
`index.php`
.
-
`INDEX`
Specify index file. Default
`index.php`
.
-
`EXPIRES`
Specify expires time. Default
`10m`
.
-
`EXPIRES`
Specify expires time. Default
`10m`
.
-
`PHP_EXTRA`
Extra entry in
`location`
.
### Global
### Global
...
...
src/site.ts
View file @
92f5010b
...
@@ -50,6 +50,7 @@ export interface StaticRenderData extends FileRenderData {
...
@@ -50,6 +50,7 @@ export interface StaticRenderData extends FileRenderData {
export
interface
PhpRenderData
extends
FileRenderData
{
export
interface
PhpRenderData
extends
FileRenderData
{
php
:
true
;
php
:
true
;
upstream
:
string
;
upstream
:
string
;
phpExtra
?:
string
[];
}
}
export
type
SpecificRenderData
=
PhpRenderData
|
StaticRenderData
|
ProxyRenderData
;
export
type
SpecificRenderData
=
PhpRenderData
|
StaticRenderData
|
ProxyRenderData
;
...
@@ -113,6 +114,7 @@ async function getSiteData(
...
@@ -113,6 +114,7 @@ async function getSiteData(
index
:
parser
.
getString
(
'
INDEX
'
)
||
'
index.php
'
,
index
:
parser
.
getString
(
'
INDEX
'
)
||
'
index.php
'
,
expires
:
parser
.
getString
(
'
EXPIRES
'
)
||
'
10m
'
,
expires
:
parser
.
getString
(
'
EXPIRES
'
)
||
'
10m
'
,
upstream
:
targetUrl
.
host
,
upstream
:
targetUrl
.
host
,
phpExtra
:
parser
.
getArray
(
'
PHP_EXTRA
'
),
}
as
PhpRenderData
;
}
as
PhpRenderData
;
}
else
{
}
else
{
specificRenderData
=
{
specificRenderData
=
{
...
...
views/nginx.conf.mustache
View file @
92f5010b
...
@@ -273,6 +273,9 @@ http {
...
@@ -273,6 +273,9 @@ http {
{{#
https
}}
{{#
https
}}
fastcgi_param HTTPS on;
fastcgi_param HTTPS on;
{{/
https
}}
{{/
https
}}
{{#
phpExtra
}}
{{
.
}}
{{/
phpExtra
}}
}
}
{{/
php
}}
{{/
php
}}
}
}
...
...
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