mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update ghost
This commit is contained in:
@@ -11,38 +11,38 @@ IMAP protocols, as well as a load balancer, HTTP cache, and a web server
|
||||
|
||||
File: docker-compose.yml
|
||||
|
||||
```
|
||||
```yaml
|
||||
nginx:
|
||||
image: vimagick/nginx
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./html:/usr/share/nginx/html
|
||||
- ./data/default.conf:/etc/nginx/default.conf
|
||||
- ./data/html:/usr/share/nginx/html
|
||||
restart: always
|
||||
```
|
||||
|
||||
## Website Proxy
|
||||
## Reverse Proxy
|
||||
|
||||
File: docker-compose.yml
|
||||
|
||||
```
|
||||
```yaml
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/sites-enabled/default:/etc/nginx/sites-enabled/default
|
||||
- ./nginx/htpasswd:/etc/nginx/htpasswd
|
||||
- ./data/default.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./data/ssl:/etc/nginx/ssl
|
||||
- ./data/htpasswd:/etc/nginx/htpasswd
|
||||
net: host
|
||||
restart: always
|
||||
```
|
||||
|
||||
> Password file can be generated by:
|
||||
>> `htpasswd -b -c ./nginx/htpasswd username password`
|
||||
>> `echo "username:$(openssl passwd -apr1 password)" >> data/htpasswd`
|
||||
|
||||
File: nginx.conf
|
||||
|
||||
```
|
||||
```nginx
|
||||
user nginx;
|
||||
worker_processes 4;
|
||||
|
||||
@@ -79,7 +79,7 @@ http {
|
||||
|
||||
File: default
|
||||
|
||||
```
|
||||
```nginx
|
||||
server {
|
||||
listen 80 default;
|
||||
server_name _;
|
||||
@@ -118,7 +118,7 @@ server {
|
||||
|
||||
File: [rtmp][1]
|
||||
|
||||
```
|
||||
```nginx
|
||||
rtmp {
|
||||
server {
|
||||
listen 1935;
|
||||
|
||||
Reference in New Issue
Block a user