diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 82d5f180..00d324fc 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -8,6 +8,8 @@ http { listen [::]:80; server_name _; + client_max_body_size 10M; + location / { proxy_pass http://dl-backend:8080; proxy_set_header Host $host; diff --git a/src/main/java/com/dl/officialsite/aave/Constant.java b/src/main/java/com/dl/officialsite/aave/Constant.java index a4d20a30..675baa3b 100644 --- a/src/main/java/com/dl/officialsite/aave/Constant.java +++ b/src/main/java/com/dl/officialsite/aave/Constant.java @@ -1,12 +1,8 @@ package com.dl.officialsite.aave; -import static org.web3j.tx.gas.DefaultGasProvider.GAS_LIMIT; -import static org.web3j.tx.gas.DefaultGasProvider.GAS_PRICE; - import com.dl.officialsite.common.constants.Constants; import com.dl.officialsite.config.TokenConfig; import com.dl.officialsite.contract.ipooladdressesprovider.IPoolAddressesProvider; -import jdk.nashorn.internal.parser.Token; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.stereotype.Component; @@ -19,6 +15,9 @@ import java.util.List; import java.util.concurrent.ConcurrentHashMap; +import static org.web3j.tx.gas.DefaultGasProvider.GAS_LIMIT; +import static org.web3j.tx.gas.DefaultGasProvider.GAS_PRICE; + /** * @ClassName Compent * @Author jackchen diff --git a/src/main/java/com/dl/officialsite/bot/discord/DiscordBotConfig.java b/src/main/java/com/dl/officialsite/bot/discord/DiscordBotConfig.java index 87c211d3..7551a0a8 100644 --- a/src/main/java/com/dl/officialsite/bot/discord/DiscordBotConfig.java +++ b/src/main/java/com/dl/officialsite/bot/discord/DiscordBotConfig.java @@ -5,6 +5,7 @@ import com.dl.officialsite.bot.model.BaseBotConfig; import com.dl.officialsite.bot.model.BotTopic; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.extern.slf4j.Slf4j; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; @@ -19,6 +20,7 @@ @Slf4j @Data +@EqualsAndHashCode(callSuper=false) @ConfigurationProperties(prefix = "bot.discord", ignoreInvalidFields = true) public class DiscordBotConfig extends BaseBotConfig { public DiscordBotConfig() { diff --git a/src/main/java/com/dl/officialsite/bot/telegram/TelegramBotConfig.java b/src/main/java/com/dl/officialsite/bot/telegram/TelegramBotConfig.java index 9501bffb..4bf15f97 100644 --- a/src/main/java/com/dl/officialsite/bot/telegram/TelegramBotConfig.java +++ b/src/main/java/com/dl/officialsite/bot/telegram/TelegramBotConfig.java @@ -4,6 +4,7 @@ import com.dl.officialsite.bot.model.BaseBotConfig; import com.pengrad.telegrambot.TelegramBot; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.extern.slf4j.Slf4j; import okhttp3.OkHttpClient; import org.springframework.boot.context.properties.ConfigurationProperties; @@ -12,6 +13,7 @@ @Slf4j @Data +@EqualsAndHashCode(callSuper=false) @ConfigurationProperties(prefix = "bot.telegram", ignoreInvalidFields = true) public class TelegramBotConfig extends BaseBotConfig { diff --git a/src/main/java/com/dl/officialsite/login/controller/HelloController.java b/src/main/java/com/dl/officialsite/login/controller/HelloController.java new file mode 100644 index 00000000..e28ebac6 --- /dev/null +++ b/src/main/java/com/dl/officialsite/login/controller/HelloController.java @@ -0,0 +1,13 @@ +package com.dl.officialsite.login.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class HelloController { + + @GetMapping("/hello") + public String sayHello() { + return "hello"; + } +} \ No newline at end of file diff --git a/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java b/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java index 62ca2ed8..301898fa 100644 --- a/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java +++ b/src/main/java/com/dl/officialsite/login/filter/LoginFilter.java @@ -55,6 +55,7 @@ public class LoginFilter extends OncePerRequestFilter { add("/share/delete"); add("/share/all"); add("/share/rank"); + add("/hello"); }} ; private Set noAddrCheckApis = new HashSet(){{