proxy - Wordpress is not loading resources

After installing wordpress via the following docker-compose file found at the compose website. I use nginx as a reverse

After installing wordpress via the following docker-compose file found at the compose website. I use nginx as a reverse proxy to the external container port. I have used certbot to enable ssl on the website by generating a certificate and the redirects.

The problem I have is that no css or js is loading whatsoever.

How do I configure SSL in such a way that wordpress is still loading the right resources?

Edit:

Added the compose file below.

version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
       WORDPRESS_DB_NAME: wordpress
volumes:
    db_data: {}

After installing wordpress via the following docker-compose file found at the compose website. I use nginx as a reverse proxy to the external container port. I have used certbot to enable ssl on the website by generating a certificate and the redirects.

The problem I have is that no css or js is loading whatsoever.

How do I configure SSL in such a way that wordpress is still loading the right resources?

Edit:

Added the compose file below.

version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
       WORDPRESS_DB_NAME: wordpress
volumes:
    db_data: {}
Share Improve this question asked Jul 2, 2019 at 13:04 gijs entiusgijs entius
Add a comment  | 

1 Answer 1

Reset to default 0

You probably have to set your Site Settings to https:// instead of http:// either through the admin screen, or the wp-config.php.

Failing to do so will cause WordPress to output the resources as non-secure, and your browser will reject them.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745039760a4607740.html

相关推荐

  • proxy - Wordpress is not loading resources

    After installing wordpress via the following docker-compose file found at the compose website. I use nginx as a reverse

    9小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信