Add subdirectory « http-auth » for configuration file.
This commit is contained in:
parent
88f7537bbd
commit
90269e40e5
|
|
@ -24,7 +24,7 @@ Or, in order to build the project you can run the command ``go build main.go``.
|
||||||
It will generate a binary that you can run as any binary file.
|
It will generate a binary that you can run as any binary file.
|
||||||
|
|
||||||
### Configure
|
### Configure
|
||||||
Configure the gateway by editing the ``httpAuth.conf`` file in order to give all XMPP and HTTP server informations. This configuration file has to be placed following the [XDG specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).
|
Configure the gateway by editing the ``httpAuth.conf`` file in order to give all XMPP and HTTP server informations. This configuration file has to be placed following the [XDG specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) (example ``/etc/xdg/http-auth/httpAuth.conf``).
|
||||||
An example of the config file can be found in [the repos](https://git.kingpenguin.tk/chteufleur/HTTPAuthentificationOverXMPP/src/master/httpAuth.conf).
|
An example of the config file can be found in [the repos](https://git.kingpenguin.tk/chteufleur/HTTPAuthentificationOverXMPP/src/master/httpAuth.conf).
|
||||||
|
|
||||||
XMPP
|
XMPP
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -17,7 +17,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "v0.5-dev"
|
Version = "v0.5-dev"
|
||||||
configurationFilePath = "httpAuth.conf"
|
configurationFilePath = "http-auth/httpAuth.conf"
|
||||||
PathConfEnvVariable = "XDG_CONFIG_DIRS"
|
PathConfEnvVariable = "XDG_CONFIG_DIRS"
|
||||||
DefaultXdgConfigDirs = "/etc/xdg"
|
DefaultXdgConfigDirs = "/etc/xdg"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue