// Registration applications are now enabled by default, need to disable them
let editSiteForm: EditSite = {
registration_mode: RegistrationMode.Open,
- federation_debug: true,
rate_limit_message: 999,
rate_limit_post: 999,
rate_limit_register: 999,
.as_ref()
.map(|l| l.federation_worker_count)
.unwrap_or(64) as u64;
- let federation_debug = local_site
- .as_ref()
- .map(|l| l.federation_debug)
- .unwrap_or(true);
let settings = InstanceSettings::builder()
.http_fetch_retry_limit(FEDERATION_HTTP_FETCH_LIMIT)
.worker_count(worker_count)
- .debug(federation_debug)
+ .debug(cfg!(debug_assertions))
.http_signature_compat(true)
.url_verifier(Box::new(VerifyUrlData(context.clone())))
.build()
pub fn run_migrations(db_url: &str) {
// Needs to be a sync connection
let mut conn =
- PgConnection::establish(db_url).unwrap_or_else(|_| panic!("Error connecting to {db_url}"));
+ PgConnection::establish(db_url).unwrap_or_else(|e| panic!("Error connecting to {db_url}: {e}"));
info!("Running Database migrations (This may take a long time)...");
let _ = &mut conn
.run_pending_migrations(MIGRATIONS)
- .unwrap_or_else(|_| panic!("Couldn't run DB Migrations"));
+ .unwrap_or_else(|e| panic!("Couldn't run DB Migrations: {e}"));
info!("Database migrations complete.");
}
lemmy-alpha-ui:
image: dessalines/lemmy-ui:0.17.1
environment:
- - LEMMY_INTERNAL_HOST=lemmy-alpha:8541
- - LEMMY_EXTERNAL_HOST=localhost:8541
- - LEMMY_HTTPS=false
+ - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy-alpha:8541
+ - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:8541
+ - LEMMY_UI_HTTPS=false
depends_on:
- lemmy-alpha
lemmy-alpha:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lemmy
+ restart: always
volumes:
- ./volumes/postgres_alpha:/var/lib/postgresql/data
lemmy-beta-ui:
image: dessalines/lemmy-ui:0.17.1
environment:
- - LEMMY_INTERNAL_HOST=lemmy-beta:8551
- - LEMMY_EXTERNAL_HOST=localhost:8551
- - LEMMY_HTTPS=false
+ - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy-beta:8551
+ - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:8551
+ - LEMMY_UI_HTTPS=false
depends_on:
- lemmy-beta
lemmy-beta:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lemmy
+ restart: always
volumes:
- ./volumes/postgres_beta:/var/lib/postgresql/data
lemmy-gamma-ui:
image: dessalines/lemmy-ui:0.17.1
environment:
- - LEMMY_INTERNAL_HOST=lemmy-gamma:8561
- - LEMMY_EXTERNAL_HOST=localhost:8561
- - LEMMY_HTTPS=false
+ - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy-gamma:8561
+ - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:8561
+ - LEMMY_UI_HTTPS=false
depends_on:
- lemmy-gamma
lemmy-gamma:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lemmy
+ restart: always
volumes:
- ./volumes/postgres_gamma:/var/lib/postgresql/data
lemmy-delta-ui:
image: dessalines/lemmy-ui:0.17.1
environment:
- - LEMMY_INTERNAL_HOST=lemmy-delta:8571
- - LEMMY_EXTERNAL_HOST=localhost:8571
- - LEMMY_HTTPS=false
+ - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy-delta:8571
+ - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:8571
+ - LEMMY_UI_HTTPS=false
depends_on:
- lemmy-delta
lemmy-delta:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lemmy
+ restart: always
volumes:
- ./volumes/postgres_delta:/var/lib/postgresql/data
lemmy-epsilon-ui:
image: dessalines/lemmy-ui:0.17.1
environment:
- - LEMMY_INTERNAL_HOST=lemmy-epsilon:8581
- - LEMMY_EXTERNAL_HOST=localhost:8581
- - LEMMY_HTTPS=false
+ - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy-epsilon:8581
+ - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:8581
+ - LEMMY_UI_HTTPS=false
depends_on:
- lemmy-epsilon
lemmy-epsilon:
- POSTGRES_USER=lemmy
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lemmy
+ restart: always
volumes:
- ./volumes/postgres_epsilon:/var/lib/postgresql/data