-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a70bb0b
commit 5a3b850
Showing
5 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# Configuration example | ||
port=8080 | ||
db-host=localhost | ||
db-port=3306 | ||
db-username=monero_ecwid | ||
db-password=devpassword | ||
required-confirmations=1 | ||
client-secret=Pe087Q6jr0CgwI96R2ZTuUMWfUAHQjMq | ||
# wallet-address=9xjCAvNQaYYDLc5UsxQPZtP8nNDUJnuhiacmMaE3zzTBetYcLusyCtD5kuQNNGo3TVCEUFKjd7yjeE3rCjPahy3RQGa39aJ | ||
# wallet-view-key=9ce15a203d7e31aa930e55e4bf18e65509fb73ba316528182b77b079bb997b0d | ||
wallet-address=9xjCAvNQaYYDLc5UsxQPZtP8nNDUJnuhiacmMaE3zzTBetYcLusyCtD5kuQNNGo3TVCEUFKjd7yjeE3rCjPahy3RQGa39aJ | ||
wallet-view-key=9ce15a203d7e31aa930e55e4bf18e65509fb73ba316528182b77b079bb997b0d | ||
wallet-server-uri=http://node2.monerodevs.org:28089 | ||
wallet-password=supersecretpassword123 | ||
wallet-net-type=testnet | ||
mail-host= | ||
mail-port= | ||
mail-host=smtp.mailgun.org | ||
mail-port=587 | ||
mail-username= | ||
mail-password= |
20 changes: 20 additions & 0 deletions
20
src/main/java/monero/ecwid/server/config/CustomPortConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package monero.ecwid.server.config; | ||
|
||
import org.springframework.boot.web.server.ConfigurableWebServerFactory; | ||
import org.springframework.boot.web.server.WebServerFactoryCustomizer; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class CustomPortConfig implements WebServerFactoryCustomizer<ConfigurableWebServerFactory> { | ||
|
||
private final ServerConfig serverConfig = ServerConfig.getServerConfig(); | ||
|
||
public CustomPortConfig() { | ||
} | ||
|
||
@Override | ||
public void customize(ConfigurableWebServerFactory factory) { | ||
factory.setPort(serverConfig.port); | ||
System.out.println("Server configurato per avviarsi sulla porta: " + serverConfig.port); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters