Skip to content

Commit 3c24e3d

Browse files
fixed nginx configuration syntax
1 parent 4f19f13 commit 3c24e3d

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
http {
2-
log_format path_status '$request_uri $status $remote_addr';
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
root /usr/share/nginx/html;
35

4-
server {
5-
listen 80;
6-
server_name localhost;
7-
root /usr/share/nginx/html;
6+
log_format path_status '$request_uri $status $remote_addr';
87

9-
access_log /var/log/nginx/access.log path_status;
8+
access_log /var/log/nginx/access.log path_status;
109

11-
location / {
12-
sub_filter '{{ UID_JS_SDK_URL }}' '${UID_JS_SDK_URL}';
13-
sub_filter '{{ UID_JS_SDK_NAME }}' '${UID_JS_SDK_NAME}';
14-
sub_filter '{{ UID_BASE_URL }}' '${UID_BASE_URL}';
15-
sub_filter '{{ SERVER_PUBLIC_KEY }}' '${SERVER_PUBLIC_KEY}';
16-
sub_filter '{{ SUBSCRIPTION_ID }}' '${SUBSCRIPTION_ID}';
17-
sub_filter_types *;
18-
sub_filter_once off;
19-
}
10+
location / {
11+
sub_filter '{{ UID_JS_SDK_URL }}' '${UID_JS_SDK_URL}';
12+
sub_filter '{{ UID_JS_SDK_NAME }}' '${UID_JS_SDK_NAME}';
13+
sub_filter '{{ UID_BASE_URL }}' '${UID_BASE_URL}';
14+
sub_filter '{{ SERVER_PUBLIC_KEY }}' '${SERVER_PUBLIC_KEY}';
15+
sub_filter '{{ SUBSCRIPTION_ID }}' '${SUBSCRIPTION_ID}';
16+
sub_filter_types *;
17+
sub_filter_once off;
2018
}
2119
}

0 commit comments

Comments
 (0)