Damir Sudarevic
Damir Sudarevic

Reputation: 22187

Change Snap server parameters

I have created a project using

snap init barebones

Is there a way to turn logging on/off and examine or set any server parameters?

Upvotes: 0

Views: 92

Answers (1)

Benjamin Kovach
Benjamin Kovach

Reputation: 3260

I think you're looking for the module Snap.Http.Server.Config. You can create a specialized Config using the functions from there, then pass them into a call to simpleHttpServe from Snap.Http.Server to start a server with your custom options.

Upvotes: 2

Related Questions