Skip to content

Commit f4be4cc

Browse files
committed
add html dir for codesandbox and change default port to 3000
1 parent c642fb0 commit f4be4cc

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.codesandbox/tasks.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"command": "/docker-entrypoint.sh nginx -g 'daemon off;'",
88
"runAtStart": true,
99
"preview": {
10-
"port": 80,
10+
"port": 3000,
1111
"prLink": "devtool"
1212
}
1313
},
@@ -28,6 +28,10 @@
2828
"files": ["**/*"],
2929
"branch": true
3030
}
31-
}
31+
},
32+
"clean-nginx-logs": {
33+
"name": "Clean nginx access and error logs",
34+
"command": "echo > /var/log/nginx/*.log"
35+
},
3236
}
3337
}

html/index.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Welcome to nginx!</title>
5+
<style>
6+
html { color-scheme: light dark; }
7+
body { width: 35em; margin: 0 auto;
8+
font-family: Tahoma, Verdana, Arial, sans-serif; }
9+
</style>
10+
</head>
11+
<body>
12+
<h1>Welcome to nginx!</h1>
13+
<p>If you see this page, the nginx web server is successfully installed and
14+
working. Further configuration is required.</p>
15+
16+
<p>For online documentation and support please refer to
17+
<a href="http://nginx.org/">nginx.org</a>.<br/>
18+
Commercial support is available at
19+
<a href="http://nginx.com/">nginx.com</a>.</p>
20+
21+
<p><em>Thank you for using nginx.</em></p>
22+
23+
<p>You can find useful example of nginx configuration <a href="http://github.com/tldr-devops/nginx-common-configuration">here</a>.</p>
24+
<p>Also you can find a collection of resources covering Nginx, Nginx + Lua, OpenResty and Tengine <a href="http://https://github.com/fcambus/nginx-resources">here</a>.</p>
25+
26+
</body>
27+
</html>

sites-enabled/default.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
server {
2-
listen 80;
2+
listen 3000;
33
server_name _;
44

55
#access_log /var/log/nginx/host.access.log main;
66

77
location / {
8-
root /usr/share/nginx/html;
8+
root /workspace/html;
99
index index.html index.htm;
1010
}
1111

0 commit comments

Comments
 (0)