Skip to content

Commit 6e133e1

Browse files
committed
update the nginx config until i figure out the new panel thing, this is kinda cursed
1 parent 63db8fc commit 6e133e1

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

nginx.conf

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
1-
server {
2-
listen 80;
3-
4-
location / {
5-
root /usr/share/nginx/html;
6-
index index.html;
7-
try_files $uri $uri/ /index.html;
8-
}
1+
server
2+
{
3+
listen 80;
4+
5+
location /discord
6+
{
7+
return 302 https://discord.gg/MXSDuqrdmc;
8+
}
9+
10+
location /static
11+
{
12+
root /nginx-shared;
13+
autoindex on;
14+
sendfile on;
15+
sendfile_max_chunk 1m;
16+
tcp_nodelay on;
17+
keepalive_timeout 65;
18+
}
19+
20+
location /learning-resources/
21+
{
22+
proxy_pass https://learningresources.developerden.net/;
23+
}
24+
25+
location /
26+
{
27+
root /usr/share/nginx/html;
28+
index index.html;
29+
try_files $uri $uri/ /index.html;
30+
}
931
}

0 commit comments

Comments
 (0)