Refactor configuration and scripts for Archipelago backend and ISO build
- Updated Cargo.toml to remove unnecessary package backtrace optimizations. - Changed default bind host and port in config.rs for broader accessibility. - Renamed state_manager to _state_manager in server.rs for clarity. - Updated user field to _user in PodmanClient and DockerRuntime for consistency. - Modified build-debian-iso.sh to enhance welcome message and backend startup instructions. - Improved archipelago-menu.sh to display backend status and updated Web UI URL. - Enhanced install-to-disk.sh for better package management and user creation during installation.
This commit is contained in:
@@ -19,11 +19,5 @@ opt-level = 0
|
||||
[profile.test]
|
||||
opt-level = 3
|
||||
|
||||
[profile.dev.package.backtrace]
|
||||
opt-level = 3
|
||||
|
||||
[profile.dev.package.sqlx-macros]
|
||||
opt-level = 3
|
||||
|
||||
# Archipelago workspace - no StartOS dependencies
|
||||
# All patches removed - we use standard crates.io dependencies
|
||||
|
||||
@@ -142,8 +142,8 @@ impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
data_dir: PathBuf::from("/var/lib/archipelago"),
|
||||
bind_host: "127.0.0.1".to_string(),
|
||||
bind_port: 5959,
|
||||
bind_host: "0.0.0.0".to_string(),
|
||||
bind_port: 5678,
|
||||
log_level: "info".to_string(),
|
||||
dev_mode: false,
|
||||
container_runtime: ContainerRuntime::Auto,
|
||||
|
||||
@@ -14,7 +14,7 @@ use tracing::{error, info};
|
||||
pub struct Server {
|
||||
_config: Config,
|
||||
api_handler: Arc<ApiHandler>,
|
||||
state_manager: Arc<StateManager>,
|
||||
_state_manager: Arc<StateManager>,
|
||||
}
|
||||
|
||||
impl Server {
|
||||
@@ -48,7 +48,7 @@ impl Server {
|
||||
Ok(Self {
|
||||
_config: config,
|
||||
api_handler,
|
||||
state_manager,
|
||||
_state_manager: state_manager,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -49,14 +49,14 @@ impl From<&str> for ContainerState {
|
||||
}
|
||||
|
||||
pub struct PodmanClient {
|
||||
user: String,
|
||||
_user: String,
|
||||
rootless: bool,
|
||||
}
|
||||
|
||||
impl PodmanClient {
|
||||
pub fn new(user: String) -> Self {
|
||||
Self {
|
||||
user,
|
||||
_user: user,
|
||||
rootless: true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,12 +82,12 @@ impl ContainerRuntime for PodmanRuntime {
|
||||
}
|
||||
|
||||
pub struct DockerRuntime {
|
||||
user: String,
|
||||
_user: String,
|
||||
}
|
||||
|
||||
impl DockerRuntime {
|
||||
pub fn new(user: String) -> Self {
|
||||
Self { user }
|
||||
Self { _user: user }
|
||||
}
|
||||
|
||||
fn docker_async(&self) -> TokioCommand {
|
||||
|
||||
Reference in New Issue
Block a user