feat(admin-configurator): add web configurator, visual level editor, audit logs and session management
This commit is contained in:
@@ -7,6 +7,14 @@ server {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
|
||||
# Game Configurator & Admin Panel SPA
|
||||
location /configurator/ {
|
||||
alias /usr/share/nginx/html/configurator_work/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /configurator/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
@@ -41,32 +49,15 @@ server {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
# Bug Reports & Feedback API proxy
|
||||
location /api/bugs {
|
||||
proxy_pass http://127.0.0.1:8001/api/bugs;
|
||||
# All Game Backend APIs (Auth, Leaderboard, Campaign, Bugs, Config, Admin, Users)
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8001;
|
||||
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;
|
||||
}
|
||||
|
||||
# User Auth & Profile Save API proxy
|
||||
location /api/auth/ {
|
||||
proxy_pass http://127.0.0.1:8001/api/auth/;
|
||||
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;
|
||||
}
|
||||
|
||||
# Admin: list all users
|
||||
location /api/users {
|
||||
proxy_pass http://127.0.0.1:8001/api/users;
|
||||
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;
|
||||
}
|
||||
|
||||
# Gitea Git Service proxy
|
||||
location = /gitea {
|
||||
@@ -88,6 +79,14 @@ server {
|
||||
}
|
||||
|
||||
# SPA Fallback & Static asset serving
|
||||
|
||||
# Game Configurator & Admin Panel SPA
|
||||
location /configurator/ {
|
||||
alias /usr/share/nginx/html/configurator_work/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /configurator/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,14 @@ server {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
|
||||
# Game Configurator & Admin Panel SPA
|
||||
location /configurator/ {
|
||||
alias /usr/share/nginx/html/configurator_work/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /configurator/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
@@ -51,6 +59,14 @@ server {
|
||||
}
|
||||
|
||||
# SPA Fallback & Static asset serving
|
||||
|
||||
# Game Configurator & Admin Panel SPA
|
||||
location /configurator/ {
|
||||
alias /usr/share/nginx/html/configurator_work/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /configurator/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
@@ -41,27 +41,9 @@ server {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
# Bug Reports & Feedback API proxy
|
||||
location /api/bugs {
|
||||
proxy_pass http://127.0.0.1:8001/api/bugs;
|
||||
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;
|
||||
}
|
||||
|
||||
# User Auth & Profile Save API proxy
|
||||
location /api/auth/ {
|
||||
proxy_pass http://127.0.0.1:8001/api/auth/;
|
||||
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;
|
||||
}
|
||||
|
||||
# Admin: list all users
|
||||
location /api/users {
|
||||
proxy_pass http://127.0.0.1:8001/api/users;
|
||||
# All Game Backend APIs (Auth, Leaderboard, Campaign, Bugs, Config, Admin, Users)
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8001;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user