- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
23 lines
518 B
Nginx Configuration File
Executable File
23 lines
518 B
Nginx Configuration File
Executable File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
client_max_body_size 1m;
|
|
index index.html;
|
|
|
|
location /api/ {
|
|
proxy_pass http://go-server:8080/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|