Skip to content

Commit 5295540

Browse files
committed
chore: #86ew03681 Update @modular-rest/client to version 1.15.0 and remove yarn.lock
- Upgraded the @modular-rest/client package in package.json and package-lock.json to version 1.15.0 for improved features and bug fixes. - Removed yarn.lock file to streamline dependency management.
1 parent 7c3aa31 commit 5295540

8 files changed

Lines changed: 29 additions & 10803 deletions

File tree

admin_panel/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin_panel/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@coderline/alphatab": "^1.2.1",
14-
"@modular-rest/client": "^1.14.1",
14+
"@modular-rest/client": "^1.15.0",
1515
"@nuxtjs/google-gtag": "^1.0.4",
1616
"@nuxtjs/pwa": "^3.3.5",
1717
"boxicons": "^2.0.7",
@@ -36,4 +36,4 @@
3636
"sass-loader": "^10.2.0",
3737
"tailwindcss": "^3.4.1"
3838
}
39-
}
39+
}

admin_panel/pages/admin/artist/_id.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export default {
116116
// Old structure - migrate on the fly
117117
this.form.content = {
118118
'ckb-IR': {
119-
name: this.artist.name || '',
120-
name_seo: this.artist.name_seo || '',
121-
bio: this.artist.bio || '',
119+
name: this.artist.name || '',
120+
name_seo: this.artist.name_seo || '',
121+
bio: this.artist.bio || '',
122122
},
123123
'ckb-Latn': null,
124124
'kmr': null,
@@ -182,7 +182,7 @@ export default {
182182
183183
update() {
184184
// Save current language content before updating
185-
this.form.content[this.currentLang] = { ...this.currentLangForm }
185+
this.form.content[this.currentLang] = { ...this.currentLangForm }
186186
187187
this.pending = true
188188
dataProvider

admin_panel/pages/admin/artist/new.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ export default {
112112
if (!this.isInitializing && this.hasCurrentContent) {
113113
this.form.content[this.currentLang] = { ...this.currentLangForm }
114114
}
115-
115+
116116
this.currentLang = lang
117-
117+
118118
// Load new language content
119119
if (this.form.content[lang]) {
120120
this.currentLangForm = {
@@ -140,8 +140,8 @@ export default {
140140
},
141141
create() {
142142
// Save current language content before creating
143-
this.form.content[this.currentLang] = { ...this.currentLangForm }
144-
143+
this.form.content[this.currentLang] = { ...this.currentLangForm }
144+
145145
this.pending = true
146146
dataProvider
147147
.insertOne({

admin_panel/yarn.lock

Lines changed: 0 additions & 10780 deletions
This file was deleted.

nginx/default.conf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ server {
5858
proxy_busy_buffers_size 8k;
5959

6060
# Proxy API requests to server service
61-
# Strip /api prefix when forwarding to server
62-
location ~ ^/api(/.*)$ {
63-
proxy_pass http://server:8081$1;
61+
location /api/ {
62+
proxy_pass http://server:8081/;
6463
proxy_http_version 1.1;
6564
proxy_set_header Host $host;
6665
proxy_set_header X-Real-IP $remote_addr;
6766
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6867
proxy_set_header X-Forwarded-Proto $scheme;
68+
proxy_set_header X-Forwarded-Host $host;
69+
proxy_set_header X-Forwarded-Prefix /api;
6970
proxy_set_header Upgrade $http_upgrade;
7071
proxy_set_header Connection 'upgrade';
7172
proxy_cache_bypass $http_upgrade;
@@ -75,16 +76,17 @@ server {
7576
proxy_send_timeout 300s;
7677
proxy_read_timeout 300s;
7778

78-
# Disable buffering for large files
79+
# Disable buffering for large files (important for signature verification of streams)
7980
proxy_buffering off;
8081
proxy_request_buffering off;
8182
}
8283

8384
# Serve admin panel static files
84-
location /admin {
85-
alias /usr/share/nginx/html/admin;
85+
location /admin/ {
86+
alias /usr/share/nginx/html/admin/;
8687
try_files $uri $uri/ /admin/index.html;
87-
88+
index index.html;
89+
8890
# Cache static assets
8991
location ~* \.(jpg|jpeg|png|gif|ico|css|js|woff|woff2|ttf|svg|eot)$ {
9092
expires 1y;

nginx/default.local.conf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ server {
2929
proxy_busy_buffers_size 8k;
3030

3131
# Proxy API requests to server service
32-
# Strip /api prefix when forwarding to server
33-
location ~ ^/api(/.*)$ {
34-
proxy_pass http://server:8081$1;
32+
location /api/ {
33+
proxy_pass http://server:8081/;
3534
proxy_http_version 1.1;
3635
proxy_set_header Host $host;
3736
proxy_set_header X-Real-IP $remote_addr;
3837
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3938
proxy_set_header X-Forwarded-Proto $scheme;
39+
proxy_set_header X-Forwarded-Host $host;
40+
proxy_set_header X-Forwarded-Prefix /api;
4041
proxy_set_header Upgrade $http_upgrade;
4142
proxy_set_header Connection 'upgrade';
4243
proxy_cache_bypass $http_upgrade;

server/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ const restConfig: any = {
3535
dbPrefix: "goranee_",
3636
},
3737
onBeforeInit: (app: any) => {
38+
// Trust proxy headers (e.g., X-Forwarded-Proto for HTTPS)
39+
app.proxy = true;
40+
3841
// Add Health cheker route
3942
let Router = require("koa-router");
4043
let healthCheck = new Router();

0 commit comments

Comments
 (0)