commit c1e0d18f7be61aa80f24e272e46fb929c62741d0
parent e63e697fc40a89306e1e9cdca228f15402dec2b2
Author: Henrique Chan Carvalho Machado <henriqueccmachado@tecnico.ulisboa.pt>
Date: Mon, 3 Nov 2025 22:29:48 +0100
oauth2_gateway: change default port from 8080 to 9090
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/oauth2_gateway/config.example.ini b/oauth2_gateway/config.example.ini
@@ -5,8 +5,8 @@
[server]
host = 127.0.0.1
-port = 8080
+port = 9090
[database]
# PostgreSQL connection string
-url = postgresql://oauth2gw:password@localhost/oauth2gw
-\ No newline at end of file
+url = postgresql://oauth2gw:password@localhost/oauth2gw
diff --git a/oauth2_gateway/src/config.rs b/oauth2_gateway/src/config.rs
@@ -37,7 +37,7 @@ impl Config {
.to_string(),
port: server_section
.get("port")
- .unwrap_or("8080")
+ .unwrap_or("9090")
.parse()
.context("Invalid port")?,
};
@@ -108,7 +108,7 @@ url = postgresql://localhost/oauth2gw
let config = Config::from_file(temp_file.path()).unwrap();
assert_eq!(config.server.host, "127.0.0.1");
- assert_eq!(config.server.port, 8080);
+ assert_eq!(config.server.port, 9090);
}
#[test]
@@ -136,7 +136,7 @@ url = postgresql://localhost/oauth2gw
r#"
[server]
host = 127.0.0.1
-port = 8080
+port = 9090
"#
)
.unwrap();
@@ -154,7 +154,7 @@ port = 8080
r#"
[server]
host = 127.0.0.1
-port = 8080
+port = 9090
[database]
# url is missing