Skip to content

Commit 5b3e528

Browse files
committed
open 8889 to admin
1 parent 9e303bd commit 5b3e528

9 files changed

Lines changed: 21 additions & 1 deletion

File tree

cms/server/contest/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="stylesheet" href="{{ url("static", "css", "bootstrap.css") }}">
1111
<link rel="stylesheet" href="{{ url("static", "cws_style.css") }}">
1212

13-
<link rel="stylesheet" href="{{ url("static", "modern_theme.css") }}">
13+
<!-- <link rel="stylesheet" href="{{ url("static", "modern_theme.css") }}"> -->
1414

1515
<script src="{{ url("static", "jq", "jquery-3.6.0.min.js") }}"></script>
1616
{# For compatibility with Bootstrap 2.x #}

config-data/nginx/sites-available/cms.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,22 @@ server {
3535
expires 30d;
3636
}
3737
}
38+
server {
39+
listen 8889;
40+
41+
# ส่งต่อให้ AdminWebServer (ที่รันอยู่ใน container ชื่อ devcms)
42+
location / {
43+
proxy_pass http://devcms:8889;
44+
45+
proxy_set_header Host $host;
46+
proxy_set_header X-Real-IP $remote_addr;
47+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
48+
proxy_set_header X-Forwarded-Proto $scheme;
49+
}
50+
51+
# ใช้ Static File ก้อนเดียวกับที่เราทำรวมร่างไว้ (Admin ก็ต้องใช้ CSS นะ!)
52+
location /static {
53+
alias /var/www/static;
54+
expires 30d;
55+
}
56+
}

docker/docker-compose.dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ services:
4242
- devcms
4343
ports:
4444
- "8888:80"
45+
- "8889:8889"
4546
volumes:
4647
- ../config-data/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
4748
- ../config-data/nginx/sites-available:/etc/nginx/sites-available:ro
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

docker/pg_data/global/pg_control

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)