Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- sendfile off;
- # SSL Settings
- ssl on;
- ssl_certificate /etc/letsencrypt/live/website.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/website.com/privkey.pem;
- include /etc/nginx/snippets/ssl-params.conf;
- root /var/www/website.com/public;
- index index.html index.htm;
- location / {
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_pass http://127.0.0.1:20000;
- proxy_redirect off;
- }
- version: '3.3'
- services:
- db:
- image: mysql:5.7
- volumes:
- - db_data:/var/lib/mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: x
- MYSQL_DATABASE: wordpress
- MYSQL_USER: wordpress
- MYSQL_PASSWORD: x
- wordpress:
- depends_on:
- - db
- image: wordpress:latest
- ports:
- - "20000:80"
- restart: always
- environment:
- WORDPRESS_DB_HOST: db:3306
- WORDPRESS_DB_USER: wordpress
- WORDPRESS_DB_PASSWORD: x
- volumes:
- db_data:
Add Comment
Please, Sign In to add comment