Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timothee Gosselin
compose.libre.sh
Commits
a3e5200f
Commit
a3e5200f
authored
10 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Fixes wordpress https \o/
parent
7e93832f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dockerfiles/services/wordpress/run-wordpress.sh
+1
-1
1 addition, 1 deletion
dockerfiles/services/wordpress/run-wordpress.sh
dockerfiles/services/wordpress/wp-config.php
+4
-0
4 additions, 0 deletions
dockerfiles/services/wordpress/wp-config.php
with
5 additions
and
1 deletion
dockerfiles/services/wordpress/run-wordpress.sh
+
1
−
1
View file @
a3e5200f
...
@@ -53,7 +53,7 @@ if [[ $DB_CONNECTABLE -eq 0 ]]; then
...
@@ -53,7 +53,7 @@ if [[ $DB_CONNECTABLE -eq 0 ]]; then
echo
"=> Installation of Wordpress"
echo
"=> Installation of Wordpress"
PASS
=
`
openssl rand
-base64
15
`
PASS
=
`
openssl rand
-base64
15
`
cd
/app
cd
/app
wp
--allow-root
core
install
--url
=
${
URL
}
--title
=
${
URL
}
--admin_user
=
${
EMAIL
}
--admin_password
=
${
PASS
}
--admin_email
=
${
EMAIL
}
wp
--allow-root
core
install
--url
=
https://
${
URL
}
--title
=
${
URL
}
--admin_user
=
${
EMAIL
}
--admin_password
=
${
PASS
}
--admin_email
=
${
EMAIL
}
wp
--allow-root
plugin
install
wordpress-https
wp
--allow-root
plugin
install
wordpress-https
wp
--allow-root
plugin activate wordpress-https
wp
--allow-root
plugin activate wordpress-https
echo
"=> Done!"
echo
"=> Done!"
...
...
This diff is collapsed.
Click to expand it.
dockerfiles/services/wordpress/wp-config.php
+
4
−
0
View file @
a3e5200f
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
* @package WordPress
* @package WordPress
*/
*/
define
(
'FORCE_SSL_ADMIN'
,
true
);
if
(
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
]
==
'https'
)
$_SERVER
[
'HTTPS'
]
=
'on'
;
// ** MySQL settings - You can get this info from your web host ** //
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
/** The name of the database for WordPress */
define
(
'DB_NAME'
,
getenv
(
'DB_NAME'
));
define
(
'DB_NAME'
,
getenv
(
'DB_NAME'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment