Make cloud proxy wordpress actually work.

This commit is contained in:
2024-01-03 21:12:48 +00:00
parent 048f783f89
commit 87b9b52298
2 changed files with 11 additions and 2 deletions

View File

@@ -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" }}}"

View File

@@ -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"