Browse Source

Add wp-config.php

Girish Ramakrishnan 11 năm trước cách đây
mục cha
commit
b1f77fd65f
3 tập tin đã thay đổi với 96 bổ sung10 xóa
  1. 5 0
      Dockerfile
  2. 1 10
      scripts/setup_app.sh
  3. 90 0
      wp-config.php

+ 5 - 0
Dockerfile

@@ -17,5 +17,10 @@ RUN cp /app/configs/supervisor/mysql.conf /etc/supervisor/conf.d/mysql.conf
 ADD scripts/ /app/scripts/
 RUN chmod +x /app/scripts/*
 
+ADD wp-config.php /app/configs/wp-config.php
+
+# these links will become valid after setup is run
+RUN ln -s /app/data/wp-config.php /app/code/wp-config.php
+
 EXPOSE 80
 

+ 1 - 10
scripts/setup_app.sh

@@ -13,17 +13,8 @@ done
 # create the database
 mysql -uroot -ppassword -e "CREATE DATABASE wordpress;"
 
-# apply schema
-# mysql -u root -ppassword my_wiki < /app/configs/mysql/schema.sql
-
 # Shutdown MySQL
 mysqladmin -uroot -ppassword shutdown
 
-# cp /app/configs/LocalSettings.php /app/data/LocalSettings.php
-# 
-# mkdir -p /app/data/uploads
-# chown www-data.www-data /app/data/uploads
-# 
-# # this should become configurable
-# wget http://lorempixel.com/100/100/ -O /app/data/wiki.png
+cp /app/configs/wp-config.php /app/data/wp-config.php
 

+ 90 - 0
wp-config.php

@@ -0,0 +1,90 @@
+<?php
+/**
+ * The base configurations of the WordPress.
+ *
+ * This file has the following configurations: MySQL settings, Table Prefix,
+ * Secret Keys, WordPress Language, and ABSPATH. You can find more information
+ * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
+ * wp-config.php} Codex page. You can get the MySQL settings from your web host.
+ *
+ * This file is used by the wp-config.php creation script during the
+ * installation. You don't have to use the web site, you can just copy this file
+ * to "wp-config.php" and fill in the values.
+ *
+ * @package WordPress
+ */
+
+// ** MySQL settings - You can get this info from your web host ** //
+/** The name of the database for WordPress */
+define('DB_NAME', 'wordpress');
+
+/** MySQL database username */
+define('DB_USER', 'root');
+
+/** MySQL database password */
+define('DB_PASSWORD', 'password');
+
+/** MySQL hostname */
+define('DB_HOST', 'localhost');
+
+/** Database Charset to use in creating database tables. */
+define('DB_CHARSET', 'utf8');
+
+/** The Database Collate type. Don't change this if in doubt. */
+define('DB_COLLATE', '');
+
+/**#@+
+ * Authentication Unique Keys and Salts.
+ *
+ * Change these to different unique phrases!
+ * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
+ * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
+ *
+ * @since 2.6.0
+ */
+define('AUTH_KEY',         'emE$cbj0XG=$-sNvH65GlVUq!1jhA(k-:-GL^4lh*_=+-/vQqBXoe:x616_?.]q~');
+define('SECURE_AUTH_KEY',  '_?e=o.me4ki ~8n%+-GW{hg>XMr@Kq?C|5v%6R|#>oFz-EIv,wR70%3w*@j*f+!Q');
+define('LOGGED_IN_KEY',    '4%PU`*?EP@>m_DoEb},%|)o~y>r7Etj-|t+[[D%eGx5z<v[`hgUxP/lMk{;Qjli(');
+define('NONCE_KEY',        '6cWaRQ0{X{2-8<?2,u[z#Z+$<FFmb}VFT.E]8~| C,PI{o~wyx:p JVY-K&q*2w_');
+define('AUTH_SALT',        'V6D|O!PDne5_-3PtOl]jBB&cN-&i=s9Z[fIKq]$duN|)DV6Jb/Ew!Xw/0.Mj-,#w');
+define('SECURE_AUTH_SALT', 'L|~ibPPAPu<$?RV!8gffS$?MB{(h8L-y8,:_m]4{c.,F=/;u3uzTe(X*IX>,wrL*');
+define('LOGGED_IN_SALT',   'i-P@Zc ,xG+kwH&D[R-n@|f]>5+{U`i/5=0|R6(Ycx,~:ckX|HO8@?XAE-`t@AkV');
+define('NONCE_SALT',       '|;x#`|:5heUdp.j1%p(Ub-%BPOepY+)CoRy|2WOl/vn0R@y!En=/x#c7sTg[y]{`');
+
+/**#@-*/
+
+/**
+ * WordPress Database Table prefix.
+ *
+ * You can have multiple installations in one database if you give each a unique
+ * prefix. Only numbers, letters, and underscores please!
+ */
+$table_prefix  = 'wp_';
+
+/**
+ * WordPress Localized Language, defaults to English.
+ *
+ * Change this to localize WordPress. A corresponding MO file for the chosen
+ * language must be installed to wp-content/languages. For example, install
+ * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
+ * language support.
+ */
+define('WPLANG', '');
+
+/**
+ * For developers: WordPress debugging mode.
+ *
+ * Change this to true to enable the display of notices during development.
+ * It is strongly recommended that plugin and theme developers use WP_DEBUG
+ * in their development environments.
+ */
+define('WP_DEBUG', false);
+
+/* That's all, stop editing! Happy blogging. */
+
+/** Absolute path to the WordPress directory. */
+if ( !defined('ABSPATH') )
+	define('ABSPATH', dirname(__FILE__) . '/');
+
+/** Sets up WordPress vars and included files. */
+require_once(ABSPATH . 'wp-settings.php');