Commit e2b0ff89 authored by kaiyou's avatar kaiyou

Rename mutu to sftp and remove nginx

parent 1afee550
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $http_host "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
server_tokens off;
keepalive_timeout 65;
gzip on;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css text/html application/json application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;
server {
listen 80 default_server;
server_name _;
root /var/www/$http_host/www/;
if ($time_iso8601 ~ "^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})") {}
access_log /var/www/$http_host/logs/$year-$month-$day-access.log;
}
}
version: '2.1'
services:
nginx:
image: nginx:latest
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostnames}
- traefik.frontend.headers.STSSeconds=315360000
- traefik.frontend.headers.browserXSSFilter=true
- traefik.frontend.headers.customResponseHeaders=Server:www||X-Powered-By:www
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./data:/var/www
ssh:
image: atmoz/sftp:latest
ports:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment