Skip to content

Commit

Permalink
fix sdoc nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace committed Sep 6, 2023
1 parent 4b5793e commit 147e94a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manual/extra_setup/sdoc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
# - 443:443
# - 7070:7070
volumes:
- /tmp/sdoc-server/shared:/shared
- /opt/seafile/sdoc-data/:/shared
environment:
- DB_HOST=192.168.0.2
- DB_PORT=3306
Expand Down
10 changes: 6 additions & 4 deletions manual/extra_setup/setup_seadoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sdoc-server:
Add the following to the `seafile.nginx.conf`:
```
location /sdoc-server {
location /sdoc-server/ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods GET,POST,PUT,DELETE,OPTIONS;
add_header Access-Control-Allow-Headers "deviceType,token, authorization, content-type";
Expand All @@ -89,7 +89,7 @@ Add the following to the `seafile.nginx.conf`:
return 204;
}

proxy_pass http://127.0.0.1:7070;
proxy_pass http://127.0.0.1:7070/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down Expand Up @@ -142,6 +142,8 @@ services:
# - 80:80
# - 443:443
- 7070:7070
networks:
- seafile-net
...
```
Expand All @@ -150,7 +152,7 @@ services:
Add the following to the `seafile.nginx.conf`:
```
location /sdoc-server {
location /sdoc-server/ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods GET,POST,PUT,DELETE,OPTIONS;
add_header Access-Control-Allow-Headers "deviceType,token, authorization, content-type";
Expand All @@ -161,7 +163,7 @@ Add the following to the `seafile.nginx.conf`:
return 204;
}

proxy_pass http://sdoc-server:7070;
proxy_pass http://sdoc-server:7070/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 147e94a

Please sign in to comment.