Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-pterodactyl-legacy
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
docker-pterodactyl-legacy
Commits
845834ba
Commit
845834ba
authored
Jul 30, 2017
by
Cameron Carney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revising https template; ensuring data storage permissions are correct
parent
0469caab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
manifest/entrypoint.sh
manifest/entrypoint.sh
+5
-5
manifest/etc/nginx/templates/https.conf.tmpl
manifest/etc/nginx/templates/https.conf.tmpl
+2
-2
No files found.
manifest/entrypoint.sh
View file @
845834ba
...
@@ -6,9 +6,10 @@
...
@@ -6,9 +6,10 @@
# Prep Container for usage
# Prep Container for usage
function
init
{
function
init
{
# Create the storage/cache director
y
# Create the storage/cache director
ies
if
[
!
-d
/data/storage
]
;
then
if
[
!
-d
/data/storage
]
;
then
cp
-pr
storage.tmpl /data/storage
cp
-pr
storage.tmpl /data/storage
chown
-R
nginx:nginx /data/storage
fi
fi
if
[
!
-d
/data/cache
]
;
then
if
[
!
-d
/data/cache
]
;
then
...
@@ -16,7 +17,7 @@ function init {
...
@@ -16,7 +17,7 @@ function init {
chown
-R
nginx:nginx /data/cache
chown
-R
nginx:nginx /data/cache
fi
fi
# destroy links and recreate them
# destroy links
(or files)
and recreate them
rm
-rf
storage
rm
-rf
storage
ln
-s
/data/storage storage
ln
-s
/data/storage storage
...
@@ -68,13 +69,12 @@ function startServer {
...
@@ -68,13 +69,12 @@ function startServer {
if
[
"
${
SSL
}
"
==
"true"
]
;
then
if
[
"
${
SSL
}
"
==
"true"
]
;
then
echo
"Enabling SSL"
echo
"Enabling SSL"
envsubst
'${
DOMAIN_NAME},${
SSL_CERT},${SSL_CERT_KEY}'
\
envsubst
'${SSL_CERT},${SSL_CERT_KEY}'
\
< /etc/nginx/templates/https.conf.tmpl
>
/etc/nginx/conf.d/default.conf
< /etc/nginx/templates/https.conf.tmpl
>
/etc/nginx/conf.d/default.conf
else
else
echo
"Disabling SSL"
echo
"Disabling SSL"
envsubst
'${DOMAIN_NAME}'
\
/etc/nginx/templates/http.conf.tmpl
>
/etc/nginx/conf.d/default.conf
< /etc/nginx/templates/http.conf.tmpl
>
/etc/nginx/conf.d/default.conf
fi
fi
exec
supervisord
--nodaemon
exec
supervisord
--nodaemon
...
...
manifest/etc/nginx/templates/https.conf.tmpl
View file @
845834ba
...
@@ -19,7 +19,7 @@ server {
...
@@ -19,7 +19,7 @@ server {
root /var/www/html/public;
root /var/www/html/public;
index index.php;
index index.php;
access_log
/var/log/nginx/pterodactyl.app-access.log
;
access_log
off
;
error_log /var/log/nginx/pterodactyl.app-error.log error;
error_log /var/log/nginx/pterodactyl.app-error.log error;
# allow larger file uploads and longer script runtimes
# allow larger file uploads and longer script runtimes
...
...
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