diff options
Diffstat (limited to '')
-rw-r--r-- | conf/nginx/nginx.conf | 72 | ||||
-rw-r--r-- | conf/postgres/database.env | 17 |
2 files changed, 0 insertions, 89 deletions
diff --git a/conf/nginx/nginx.conf b/conf/nginx/nginx.conf deleted file mode 100644 index 64f1b1d..0000000 --- a/conf/nginx/nginx.conf +++ /dev/null @@ -1,72 +0,0 @@ -worker_processes 4; -daemon off; -pid /tmp/nginx.pid; -error_log /var/log/nginx/error.log; - -events { - worker_connections 1024; -} - -http { - include mime.types; - default_type application/octet-stream; - sendfile on; - keepalive_timeout 70; - server_tokens off; - client_max_body_size 2m; - - access_log /var/log/nginx/access.log; - - upstream postgrest { - server rest:3000; - } - - server { - listen 8080; - root /opt/xssbook; - - gzip on; - gzip_vary on; - gzip_proxied any; - gzip_comp_level 6; - gzip_buffers 16 8k; - gzip_http_version 1.1; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml image/x-icon; - - location /api/ { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header Accept-Encoding ""; - proxy_redirect off; - - default_type application/json; - add_header 'Access-Control-Allow-Origin' '*'; - add_header Content-Location /api/$upstream_http_content_location; - proxy_set_header Connection ""; - proxy_http_version 1.1; - - proxy_pass http://postgrest/; - } - - location /favicon.ico { - add_header 'Access-Control-Allow-Origin' '*'; - root /opt/xssbook/public; - add_header Cache-Control "public, max-age=108000"; - } - - location /public { - add_header 'Access-Control-Allow-Origin' '*'; - try_files $uri =404; - add_header Cache-Control "public, max-age=108000"; - } - - location / { - add_header 'Access-Control-Allow-Origin' '*'; - root /opt/xssbook/web; - include fastcgi_params; - fastcgi_pass php:9000; - fastcgi_param SCRIPT_FILENAME $document_root/index.php; - } - - } -} diff --git a/conf/postgres/database.env b/conf/postgres/database.env deleted file mode 100644 index 0361637..0000000 --- a/conf/postgres/database.env +++ /dev/null @@ -1,17 +0,0 @@ -# -# Dynamic env vars -# Can be changed -# -POSTGRES_PASSWORD=xssbook - -# CHANGE THIS -# do not use the default provided jwt secret key -JWT_SECRET="809d5fca7979a5fbe184fae76fc53c5c587fd521bf06eb34585fd5d6a3fcbc10573aaf88a2a52fa5457223f78e3a6df4cd3135e0d0b60e84d49b28f634cb19c5ca29c9da88bd46b8f1b639bfde4b9515829031503debce3e85cf07bb224a9a3efa29b26adfeec42abf345eaf2fe828648a14b9e6b7e9a48a9bdc8607b8172251d3bdfa2dcf0c7f4368350e00a7b4bc3c975d37e5f8db031d32ec329c869f562c39358748926a9e26efd28bb15085c14de8b064ea2f8f8c58606c7dfe19721a1a0ad7deb2d5f5cc6f96fa0bdaf624cdfa196fcb802fc508b9e0328207897a7071857f87f89147d065d5c712fc7c7cc4dd1743a55a42dade16e3e86f905cf2ca28" - -# -# Static env vars -# do not change unless you -# know what you are doign -# -POSTGRES_USER=xssbook -POSTGRES_DB=xssbook |