You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSL not working - Web server is disabled error #4381
change database port to 5432 on /config/development.yaml
change database password on /config/development.yaml
manually create database on local Postgresql
dart main.dart --apply-migrations
runs fine, now setup SSL:
copy certificate.pem and private.key files to /bin folder
in server.dart before void run(...) add:
final securityContext = SecurityContext()
..useCertificateChain('certificate.pem')
..usePrivateKey('private.key');
edit void run(...) to:
final pod = Serverpod(
args,
Protocol(),
Endpoints(),
securityContextConfig: SecurityContextConfig(
apiServer: securityContext,
webServer: securityContext,
insightsServer: securityContext,
),
);
change publicScheme to https on development.yaml
dart main.dart --apply-migrations give this error:
SERVERPOD version: 2.9.2, dart: 3.10.3 (stable) (Tue Dec 2 01:04:53 2025 -0800) on "windows_x64", time: 2025-12-08 09:34:21.235571Z
runMode: development
serverId: default
role: monolith
loggingMode: normal
applyMigrations: true
applyRepairMigration: false
SERVERPOD initialized, time: 2025-12-08 09:34:21.275788Z
Unhandled exception:
Bad state: Web server is disabled, supply a web server configuration to enable this feature.
#0 Serverpod.webServer (package:serverpod/src/server/serverpod.dart:142:7)
Activity
[-]SSL not working[/-][+]SSL not working - Web server is disabled[/+][-]SSL not working - Web server is disabled[/-][+]SSL not working - Web server is disabled error[/+]