Skip to content

A self-hosted media server and file management system

delete old nginx and caddy configs

aminnausindd06246baabe
diff --git a/docker/caddy/CaddyFile b/docker/caddy/CaddyFile
deleted file mode 100644
index 3fbecb3e..00000000
--- a/docker/caddy/CaddyFile
+++ /dev/null
@@ -1,10 +0,0 @@
-app.test {
- reverse_proxy nginx:8086 {
- header_up X-Forwarded-For {remote}
- header_up X-Real-IP {remote}
- header_up X-Forwarded-Proto {scheme}
- header_up Host {host}
- }
- encode gzip
- tls internal
-}
diff --git a/docker/nginx/app.conf b/docker/nginx/app.conf
deleted file mode 100644
index 70dd5b43..00000000
--- a/docker/nginx/app.conf
+++ /dev/null
@@ -1,72 +0,0 @@
-server {
- listen 8086;
- server_name app.test;
- root /var/www/html/public;
-
- index index.php;
- error_log /var/log/nginx/error.log;
- access_log /var/log/nginx/access.log;
-
- add_header X-Frame-Options "SAMEORIGIN";
- add_header X-Content-Type-Options "nosniff";
-
- location /app {
- proxy_http_version 1.1;
- proxy_set_header Host $http_host ;
- proxy_set_header Scheme $scheme;
- proxy_set_header SERVER_PORT $server_port;
- proxy_set_header REMOTE_ADDR $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
-
- proxy_pass http://0.0.0.0:6001;
- }
-
- include mime.types;
-
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- autoindex off;
- gzip_static on;
- }
-
- location ~ \.php$ {
- include fastcgi.conf;
- include fastcgi_params;
- try_files $uri =404;
-
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
-
- fastcgi_pass app:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
-
- fastcgi_read_timeout 3600;
- fastcgi_hide_header X-Powered-By;
- }
-
- charset utf-8;
-
- location = /favicon.ico {
- access_log off;
- log_not_found off;
- }
- location = /robots.txt {
- access_log off;
- log_not_found off;
- }
-
- location ~ /\.(?!well-known).* {
- deny all;
- }
-
- location /storage/ {
- valid_referers 127.0.0.1, app.test ;
- if ($invalid_referer) {
- return 403;
- }
- }
-}