BS-001 Initialize BortStack foundation and project workflow
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# SWAG reverse-proxy integration
|
||||
|
||||
The production Compose stack joins its `nginx` service to the existing external
|
||||
Docker network named by `SWAG_NETWORK` (default: `swagnet`). SWAG terminates TLS
|
||||
and proxies the public hostname to `nginx:80`; the application nginx container
|
||||
serves the React build and forwards `/api/` to the private API service.
|
||||
|
||||
Copy `app.subdomain.conf.sample` into the SWAG `nginx/proxy-confs/` directory,
|
||||
replace the placeholder domain settings using normal SWAG conventions, and
|
||||
restart or reload SWAG. The exact SWAG filesystem location is a server concern
|
||||
and is intentionally not encoded in this repository.
|
||||
|
||||
Do not expose MySQL publicly. The loopback API and frontend port mappings exist
|
||||
for server-local health diagnostics; SWAG should reach the frontend by Docker
|
||||
service name over the external network.
|
||||
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name app.*;
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
location / {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app nginx;
|
||||
set $upstream_port 80;
|
||||
proxy_pass http://$upstream_app:$upstream_port;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user