Making WordPress.org

Changeset 8818


Ignore:
Timestamp:
05/20/2019 11:52:22 AM (7 years ago)
Author:
vedjain
Message:

WC Docker: Force https for consistency and avoid mixed content

Earlier https was required but not forced, cause mixed content warning with some images. This patch will redirect all http requests to https.

Location:
sites/trunk/wordcamp.org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/.docker/Dockerfile

    r8813 r8818  
    88RUN apt-get update
    99RUN apt-get install nginx -y
    10 COPY nginx.conf /etc/nginx/sites-enabled/wordcamp.conf
     10COPY nginx.conf /etc/nginx/sites-enabled/default.conf
    1111COPY php-fpm.conf /usr/local/etc/php-fpm.d/zz-www.conf
    1212
  • sites/trunk/wordcamp.org/.docker/nginx.conf

    r8810 r8818  
    66
    77server {
    8     listen 80;
     8    listen 80 default_server;
    99    listen [::]:80;
    10     server_name wordcamp.test;
    11     return 301 https://wordcamp.test$request_uri;
     10    server_name _;
     11    return 301 https://$host$request_uri;
    1212}
    1313
  • sites/trunk/wordcamp.org/docker-compose.yml

    r8816 r8818  
    99      - ".docker/wp-config.php:/usr/src/public_html/wp-config.php"
    1010    ports:
    11       - "1234:80"
     11      - "80:80"
    1212      - "443:443"
    1313      - "1080:1080"
Note: See TracChangeset for help on using the changeset viewer.