Skip to content

Commit

Permalink
Merge pull request #204 from Dapp-Learning-DAO/feature/fix-file-uploa…
Browse files Browse the repository at this point in the history
…d-limit

Add hello controller
  • Loading branch information
liberhe authored Mar 12, 2024
2 parents cfb8cae + 5739dc5 commit d8e3ff9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/dl/officialsite/aave/Constant.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,6 +20,7 @@

@Slf4j
@Data
@EqualsAndHashCode(callSuper=false)
@ConfigurationProperties(prefix = "bot.discord", ignoreInvalidFields = true)
public class DiscordBotConfig extends BaseBotConfig<JDA, String, String> {
public DiscordBotConfig() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -12,6 +13,7 @@

@Slf4j
@Data
@EqualsAndHashCode(callSuper=false)
@ConfigurationProperties(prefix = "bot.telegram", ignoreInvalidFields = true)
public class TelegramBotConfig extends BaseBotConfig<TelegramBot, Long, Integer> {

Expand Down
Original file line number Diff line number Diff line change
@@ -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";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class LoginFilter extends OncePerRequestFilter {
add("/share/delete");
add("/share/all");
add("/share/rank");
add("/hello");
}} ;

private Set<String> noAddrCheckApis = new HashSet(){{
Expand Down

0 comments on commit d8e3ff9

Please sign in to comment.