Public Access
fix: nginx DNS resolver, port 8081, seed script with real family data
This commit is contained in:
+2
-2
@@ -85,8 +85,8 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8081:80"
|
||||||
- "443:443"
|
- "8444:443"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
- ./nginx/ssl:/etc/nginx/ssl:ro
|
- ./nginx/ssl:/etc/nginx/ssl:ro
|
||||||
|
|||||||
+27
-10
@@ -1,19 +1,36 @@
|
|||||||
server {
|
http {
|
||||||
listen 80;
|
include /etc/nginx/mime.types;
|
||||||
server_name localhost;
|
default_type application/octet-stream;
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
location / {
|
# Use Docker's internal DNS so upstream IPs are re-resolved after restarts
|
||||||
try_files $uri $uri/ /index.html;
|
resolver 127.0.0.11 valid=10s;
|
||||||
}
|
resolver_timeout 5s;
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name _;
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://backend:8000;
|
set $backend_upstream http://backend:8000;
|
||||||
|
proxy_pass $backend_upstream;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
proxy_set_header Connection 'upgrade';
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_cache_bypass $http_upgrade;
|
proxy_cache_bypass $http_upgrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
set $frontend_upstream http://frontend:80;
|
||||||
|
proxy_pass $frontend_upstream;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ CHILD_COUNT = 2
|
|||||||
|
|
||||||
MEMBERS = [
|
MEMBERS = [
|
||||||
{"name": "Peter", "email": "peter@research.bike", "role": "adult", "likes_mushrooms": True},
|
{"name": "Peter", "email": "peter@research.bike", "role": "adult", "likes_mushrooms": True},
|
||||||
{"name": "Wife", "email": "wife@example.com", "role": "adult", "likes_mushrooms": False},
|
{"name": "Julia", "email": "julia@research.bike", "role": "adult", "likes_mushrooms": False},
|
||||||
{"name": "Kid 1", "email": "", "role": "child", "likes_mushrooms": False},
|
{"name": "Kid 1", "email": "", "role": "child", "likes_mushrooms": False},
|
||||||
{"name": "Kid 2", "email": "", "role": "child", "likes_mushrooms": False},
|
{"name": "Kid 2", "email": "", "role": "child", "likes_mushrooms": False},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user