Skip to content

Commit

Permalink
Merge pull request #61 from yanyanho/main
Browse files Browse the repository at this point in the history
fix the start shell
  • Loading branch information
yanyanho authored Nov 10, 2023
2 parents 9c8fce9 + 35b281c commit 9ea34d8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
12 changes: 11 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ services:
- "8081:8080"
- "4001:4001"
volumes:
- ./data/ipfs:/data/ipfs
- ./data/ipfs:/data/ipfs
nginx:
container_name: mynginx
image: nginx:latest
ports:
- '80:80'
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
# - ./conf.d:/etc/nginx/conf.d
# - ./logs:/var/log/nginx
restart: always
24 changes: 24 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

events {
worker_connections 4096; ## Default: 1024
}
http {
server {
listen 80;
listen [::]:80;
server_name ipfs.dapplearning.org;
location / {
proxy_pass http://localhost:8081;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;

# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/dl/officialsite/team/TeamController.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class TeamController {
* 新增团队
*/
@PutMapping
BaseResponse add(@RequestBody TeamVO team, @RequestParam String address) {
BaseResponse create(@RequestBody TeamVO team, @RequestParam String address) {
teamService.add(team);
return BaseResponse.successWithData(team);
}
Expand Down
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ start(){
echo "==============================================================================================="
else
echo -n "Server $APP_MAIN Port $SERVER_PORT ..."
echo "$JAVA_CMD -agentlib:jdwp=transport=dt_socket,address=9093,server=y,suspend=n -Djdk.tls.namedGroups="secp256k1" $JAVA_OPTS -Djava.library.path=$CONF_DIR -cp $CLASSPATH $APP_MAIN >> $LOG_DIR/front.out 2>&1 &"
echo "$JAVA_CMD -agentlib:jdwp=transport=dt_socket,address=9093,server=y,suspend=n -Djdk.tls.namedGroups="secp256k1" $JAVA_OPTS -Djava.library.path=$CONF_DIR -Dhttps.protocols=TLSv1.2 -cp $CLASSPATH $APP_MAIN >> $LOG_DIR/front.out 2>&1 &"

nohup $JAVA_CMD -agentlib:jdwp=transport=dt_socket,address=9093,server=y,suspend=n -Djdk.tls.namedGroups="secp256k1" $JAVA_OPTS -Djava.library.path=$CONF_DIR -cp $CLASSPATH $APP_MAIN >> $LOG_DIR/front.out 2>&1 &
nohup $JAVA_CMD -agentlib:jdwp=transport=dt_socket,address=9093,server=y,suspend=n -Djdk.tls.namedGroups="secp256k1" $JAVA_OPTS -Djava.library.path=$CONF_DIR -Dhttps.protocols=TLSv1.2 -cp $CLASSPATH $APP_MAIN >> $LOG_DIR/front.out 2>&1 &

count=1
result=0
Expand Down

0 comments on commit 9ea34d8

Please sign in to comment.