mirror of
				https://github.com/casjaysdevdocker/aria2
				synced 2025-11-03 19:02:25 -05:00 
			
		
		
		
	🗃️ Committing everything that changed 🗃️
Dockerfile .env.scripts .gitattributes .gitea/workflows/docker.yaml .gitignore LICENSE.md README.md rootfs/root/docker/setup/00-init.sh rootfs/root/docker/setup/01-system.sh rootfs/root/docker/setup/02-packages.sh rootfs/root/docker/setup/03-files.sh rootfs/root/docker/setup/04-users.sh rootfs/root/docker/setup/05-custom.sh rootfs/root/docker/setup/06-post.sh rootfs/root/docker/setup/07-cleanup.sh rootfs/tmp/ rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/bin/pkmgr rootfs/usr/local/etc/docker/env/00-directory.sh rootfs/usr/local/etc/docker/env/addresses.sh rootfs/usr/local/etc/docker/env/certbot.sh rootfs/usr/local/etc/docker/env/couchdb.sh rootfs/usr/local/etc/docker/env/default.sample rootfs/usr/local/etc/docker/env/global.sh rootfs/usr/local/etc/docker/env/healthcheck.sh rootfs/usr/local/etc/docker/env/mariadb.sh rootfs/usr/local/etc/docker/env/mongodb.sh rootfs/usr/local/etc/docker/env/networking.sh rootfs/usr/local/etc/docker/env/other.sh rootfs/usr/local/etc/docker/env/php.sh rootfs/usr/local/etc/docker/env/postgres.sh rootfs/usr/local/etc/docker/env/redis.sh rootfs/usr/local/etc/docker/env/services.sh rootfs/usr/local/etc/docker/env/ssl.sh rootfs/usr/local/etc/docker/env/supabase.sh rootfs/usr/local/etc/docker/env/webservers.sh rootfs/usr/local/etc/docker/env/zz-entrypoint.sh rootfs/usr/local/etc/docker/functions/ rootfs/usr/local/etc/docker/init.d/00-aria2c.sh rootfs/usr/local/etc/docker/init.d/zz-nginx.sh rootfs/usr/local/share/template-files/config/aria2/aria2.conf rootfs/usr/local/share/template-files/config/aria2/aria2.session rootfs/usr/local/share/template-files/config/aria2/aria-ng.config.js rootfs/usr/local/share/template-files/config/aria2/scripts/post-hook.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/ rootfs/usr/local/share/template-files/config/.gitkeep rootfs/usr/local/share/template-files/config/nginx/mime.types rootfs/usr/local/share/template-files/config/nginx/nginx.conf
This commit is contained in:
		
							
								
								
									
										83
									
								
								rootfs/tmp/etc/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								rootfs/tmp/etc/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,83 @@
 | 
			
		||||
# Default nginx configuration
 | 
			
		||||
user                   root;
 | 
			
		||||
worker_processes       auto;
 | 
			
		||||
daemon                 off; 
 | 
			
		||||
 | 
			
		||||
error_log              /data/logs/nginx/nginx.log error;
 | 
			
		||||
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] "$request" '
 | 
			
		||||
                        '$status $body_bytes_sent "$http_referer" '
 | 
			
		||||
                        '"$http_user_agent" "$http_x_forwarded_for"';
 | 
			
		||||
    access_log          /data/logs/nginx/access.log main;
 | 
			
		||||
    sendfile            on;
 | 
			
		||||
    keepalive_timeout   65;
 | 
			
		||||
    gzip                on;
 | 
			
		||||
    map                 $http_upgrade $connection_upgrade { default upgrade; '' close; }
 | 
			
		||||
    disable_symlinks   off;
 | 
			
		||||
 | 
			
		||||
    server {
 | 
			
		||||
        listen                               REPLACE_SERVER_PORT;
 | 
			
		||||
        root                                 /usr/local/share/ariang;
 | 
			
		||||
        index                                index.html;
 | 
			
		||||
        proxy_intercept_errors               off;
 | 
			
		||||
        add_header X-Frame-Options           "SAMEORIGIN" always;
 | 
			
		||||
        add_header X-XSS-Protection          "1; mode=block" always;
 | 
			
		||||
        add_header X-Content-Type-Options    "nosniff" always;
 | 
			
		||||
        add_header Referrer-Policy           "no-referrer-when-downgrade" always;
 | 
			
		||||
        add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
 | 
			
		||||
        add_header Content-Security-Policy   "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
 | 
			
		||||
 | 
			
		||||
    location /jsonrpc {
 | 
			
		||||
        proxy_pass         http://127.0.0.1:6800/jsonrpc;
 | 
			
		||||
        proxy_http_version 1.1;
 | 
			
		||||
        proxy_set_header   Upgrade $http_upgrade;
 | 
			
		||||
        proxy_set_header   Connection "upgrade";
 | 
			
		||||
        proxy_read_timeout 86400;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /rpc {
 | 
			
		||||
        proxy_pass         http://127.0.0.1:6800/jsonrpc;
 | 
			
		||||
        proxy_http_version 1.1;
 | 
			
		||||
        proxy_set_header   Upgrade $http_upgrade;
 | 
			
		||||
        proxy_set_header   Connection "upgrade";
 | 
			
		||||
        proxy_read_timeout 86400;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location = /favicon.ico {
 | 
			
		||||
        log_not_found off;
 | 
			
		||||
        access_log off;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location = /robots.txt {
 | 
			
		||||
        allow all;
 | 
			
		||||
        log_not_found off;
 | 
			
		||||
        access_log off;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /nginx_status {
 | 
			
		||||
        stub_status;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /health {
 | 
			
		||||
        default_type text/html;
 | 
			
		||||
        allow all;
 | 
			
		||||
        access_log off;
 | 
			
		||||
        return 200 'OK';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /health/json {
 | 
			
		||||
        default_type application/json;
 | 
			
		||||
        allow all;
 | 
			
		||||
        access_log off;
 | 
			
		||||
        return 200 '{"status":"OK"}';
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user