mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-01-18 16:17:26 +01:00
18 lines
328 B
Go
18 lines
328 B
Go
//go:build windows
|
|
|
|
package server
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func init() {
|
|
programData := os.Getenv("ProgramData")
|
|
if programData == "" {
|
|
programData = `C:\ProgramData`
|
|
}
|
|
DefaultConfigFile = filepath.Join(programData, "ntfy", "server.yml")
|
|
DefaultTemplateDir = filepath.Join(programData, "ntfy", "templates")
|
|
}
|