Skip to content
Permalink
Browse files

feat: host on spaces and redirect with nignx

  • Loading branch information...
etienne-napoleone committed Jan 16, 2019
1 parent a51e20d commit 9d169269d391c2869f80ef32fba3fcec01994914
Showing with 31 additions and 10 deletions.
  1. +0 −10 Dockerfile
  2. +13 −0 docker-compose.yml
  3. +18 −0 nginx.conf

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,13 @@
version: "3.4"

services:

proxy:
image: nginx:alpine
ports:
- 3000:3000
- 3001:3001
- 3002:3002
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
restart: always
@@ -0,0 +1,18 @@
events {
worker_connections 4096; ## Default: 1024
}

http {
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

server {
listen 3000;

location / {
rewrite ^(.*) https://maintenance.sgp1.cdn.digitaloceanspaces.com/index.html redirect;
}

}
}

0 comments on commit 9d16926

Please sign in to comment.
You can’t perform that action at this time.