Browse Source

initial skeleton

Thomas Rudin 4 months ago
commit
545b6b1d3d
4 changed files with 74 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 27 0
      docker-compose.yml
  3. 41 0
      nginx.conf
  4. 5 0
      readme.md

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+data

+ 27 - 0
docker-compose.yml

@@ -0,0 +1,27 @@
+version: "2"
+
+services:
+
+ nginx:
+  image: nginx
+  networks:
+   - terminator
+   - default
+  restart: always
+  environment:
+   VIRTUAL_PORT: 80
+   VIRTUAL_HOST: backup.pandorabox.io
+   LETSENCRYPT_HOST: backup.pandorabox.io
+   LETSENCRYPT_EMAIL: thomas@rudin.io
+  volumes:
+   - "./nginx.conf:/etc/nginx/nginx.conf:ro"
+   - "./data/:/html"
+  logging:
+   options:
+    max-size: 50m
+
+networks:
+ terminator:
+  external: true
+
+ 

+ 41 - 0
nginx.conf

@@ -0,0 +1,41 @@
+
+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] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for"';
+
+    access_log  /var/log/nginx/access.log  main;
+
+    sendfile        on;
+
+    client_max_body_size 2G;
+    keepalive_timeout  65;
+
+    gzip  on;
+
+    server {
+	listen 80;
+	server_name localhost;
+
+	location / {
+		root /html;
+		autoindex on;
+	}
+
+    }
+}

+ 5 - 0
readme.md

@@ -0,0 +1,5 @@
+
+## Pandorabox backup server
+
+https://backup.pandorabox.io
+