Make cloud proxy wordpress actually work.
This commit is contained in:
@@ -117,6 +117,8 @@ entryPoints:
|
|||||||
|
|
||||||
web4proxy:
|
web4proxy:
|
||||||
address: ":{{{ env "NOMAD_PORT_http4proxy" }}}"
|
address: ":{{{ env "NOMAD_PORT_http4proxy" }}}"
|
||||||
|
forwardedHeaders:
|
||||||
|
insecure: true
|
||||||
|
|
||||||
websecure:
|
websecure:
|
||||||
address: ":{{{ env "NOMAD_PORT_https" }}}"
|
address: ":{{{ env "NOMAD_PORT_https" }}}"
|
||||||
|
|||||||
@@ -32,14 +32,21 @@ job "wordpress" {
|
|||||||
WORDPRESS_CONFIG_EXTRA =<<EOH
|
WORDPRESS_CONFIG_EXTRA =<<EOH
|
||||||
define('MULTISITE', true);
|
define('MULTISITE', true);
|
||||||
define('SUBDOMAIN_INSTALL', true);
|
define('SUBDOMAIN_INSTALL', true);
|
||||||
//define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
|
define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
|
||||||
define('DOMAIN_CURRENT_SITE', 'wordpress.paler.net');
|
//define('DOMAIN_CURRENT_SITE', 'wordpress.paler.net');
|
||||||
define('PATH_CURRENT_SITE', '/');
|
define('PATH_CURRENT_SITE', '/');
|
||||||
define('SITE_ID_CURRENT_SITE', 1);
|
define('SITE_ID_CURRENT_SITE', 1);
|
||||||
define('BLOG_ID_CURRENT_SITE', 4);
|
define('BLOG_ID_CURRENT_SITE', 4);
|
||||||
|
//define('WP_HOME', 'https://wordpress.paler.net');
|
||||||
|
//define('WP_SITEURL', 'https://wordpress.paler.net');
|
||||||
EOH
|
EOH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resources {
|
||||||
|
cpu = 1000
|
||||||
|
memory = 1024
|
||||||
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
name = "wordpress"
|
name = "wordpress"
|
||||||
port = "http"
|
port = "http"
|
||||||
|
|||||||
Reference in New Issue
Block a user