Simon Zolin
7f1f85b08c
Merge: + http server: enable gzip compression
...
Close #626
* commit '3f404bc37e14bbd781f6feb62502a44188b4c7ef':
+ http server: enable gzip compression for /control/querylog
+ http server: enable gzip compression for static documents
2019-04-16 11:11:01 +03:00
Simon Zolin
c8e4f61534
Merge: + config: add "rlimit_nofile" setting - Maximum number of opened fd's per process
...
* commit '1f1e26f67b00ee4983c65e4e3aabf59a488f687b':
+ config: add "rlimit_nofile" setting - Maximum number of opened fd's per process
2019-04-15 18:34:53 +03:00
Simon Zolin
7746a3e6a9
+ app: add '--pidfile FILE' command-line parameter
2019-04-15 13:41:46 +03:00
Simon Zolin
cca61a33c6
+ http server: enable gzip compression for static documents
2019-04-04 16:58:31 +03:00
Simon Zolin
1f1e26f67b
+ config: add "rlimit_nofile" setting - Maximum number of opened fd's per process
2019-03-28 13:56:12 +03:00
Simon Zolin
0884116de3
* app: refactor: don't rewrite config file after filters are updated
2019-03-19 17:30:17 +03:00
Simon Zolin
61b1a30aa1
* refactor: move code to loadFilters()
2019-03-19 17:29:07 +03:00
Aleksey Dmitrevskiy
70c56f7a18
+ app, config: add symlink support, allow to specify absolute path in log_file
2019-03-15 11:49:58 +03:00
Alexey Dmitrievskiy
7ec4aa91ea
Merge pull request #153 in DNS/adguard-dns from fix/595 to master
...
* commit '2dc2a0946a28f41736228db1065654716907c5b8':
Fix #595 - Start using GO 1.12
2019-02-28 18:05:27 +03:00
Simon Zolin
99c8cd06c9
Merge remote-tracking branch 'origin/master' into feature/600
2019-02-27 18:40:22 +03:00
Simon Zolin
5ad9f8ead2
* tlsConfigStatus.usable is public, renamed ("ValidPair") and is exported to json ("valid_pair")
2019-02-27 17:36:02 +03:00
Simon Zolin
5cb6d97cd7
* use new logger - AdguardTeam/golibs/log
2019-02-27 15:02:11 +03:00
Simon Zolin
766fbab071
* validateCertificates(): change input parameters; added short description
2019-02-27 14:21:15 +03:00
Aleksey Dmitrevskiy
2dc2a0946a
Fix #595 - Start using GO 1.12
2019-02-26 15:32:56 +03:00
Andrey Meshkov
a04923a4f3
Fix printing HTTPS address
2019-02-22 18:47:54 +03:00
Andrey Meshkov
4e1c1618cb
Added install methods to openapi.yaml
...
Print all net interfaces when bind_host is 0.0.0.0
2019-02-22 17:59:42 +03:00
Eugene Bujak
8e993cd788
Fix data races found by race detector.
2019-02-21 19:07:12 +03:00
Andrey Meshkov
251beb24d3
Added openapi description
2019-02-21 17:33:46 +03:00
Eugene Bujak
885e4e16c8
/tls/ -- prevent encryption errors when changing certificates mid-request
2019-02-19 17:52:19 +03:00
Eugene Bujak
3c374b5940
/tls/ -- add internal usable flag to simplify logic when https needs to be booted up
2019-02-19 15:21:38 +03:00
Eugene Bujak
d44f68e844
/tls/configure and /tls/validate -- make validation failures non-fatal
2019-02-15 17:07:45 +03:00
Eugene Bujak
81bb4aea78
/tls/configure and /tls/status -- now there's an explicit 'enabled' bool.
2019-02-15 16:28:28 +03:00
Eugene Bujak
b4b800565c
Fixup for "validate certificates".
2019-02-15 16:28:28 +03:00
Eugene Bujak
571be68733
Validate certificates and update certificate statuses on launch as well.
2019-02-15 16:28:28 +03:00
Eugene Bujak
f0569af367
Remove redundant printf
2019-02-15 16:28:28 +03:00
Eugene Bujak
30050bf278
Spin up an HTTPS server when certificates, port and private key are configured.
2019-02-15 16:28:28 +03:00
Andrey Meshkov
9ff420bb52
Do not store last_updated in the config file anymore
2019-02-10 21:44:16 +03:00
Andrey Meshkov
9a03190a62
Fix #579
...
1. Added --workdir command-line argument that lets configure the working dir.
2. Made "dnsforward" use this workdir parameter when saving/reading querylog.
3. Reworked "dnsforward" -- moved http handlers out of there to control.go
2019-02-10 20:47:43 +03:00
Eugene Bujak
68c8a4d484
Demote some log.printf into log.tracef
2019-02-07 18:24:43 +03:00
Andrey Meshkov
bb8d7c37bb
Minor cleanup, added strings, added more information to response when error occurs
2019-02-07 14:22:08 +03:00
Eugene Bujak
398312cd80
Move installation of /install handlers into a separate optional function
2019-02-06 17:28:08 +03:00
Eugene Bujak
06a28a461d
/install/configure -- Rebind HTTP server when we get new host and port
2019-02-06 17:25:18 +03:00
Eugene Bujak
daae040f9c
Check if IP:port combinations are possible before returning OK on /install/configure
2019-02-06 17:22:46 +03:00
Eugene Bujak
302c3a767a
Initial implementation of welcome/firstrun/installer page in go backend
2019-02-06 17:21:23 +03:00
Andrey Meshkov
5fed5c0718
We'd better keep -h for host
2019-02-05 23:29:11 +03:00
Andrey Meshkov
0fbfa057b1
Get rid of hardcoded binary name
2019-02-05 20:35:48 +03:00
Andrey Meshkov
448a6caeb8
Fixed review comments
...
Fixed running as a windows service
Added logging to windows evenlog
2019-02-05 14:09:05 +03:00
Andrey Meshkov
277415124e
AdGuard Home as a system service
...
1. Reworked working with command-line arguments
2. Added service control actions: install/uninstall/start/stop/status
3. Added log settings to the configuration file
4. Updated the README file
2019-02-04 13:54:53 +03:00
Andrey Meshkov
d078851246
gometalinter
2019-01-25 20:13:57 +03:00
Eugene Bujak
368e2d1ebd
move log wrapper library outside into hmage/golibs/log
2018-12-29 19:12:45 +03:00
Eugene Bujak
d8802a9709
Use new log wrapper and add more functions to it.
2018-12-29 17:37:18 +03:00
Eugene Bujak
55a7ff7447
Get rid of logrus, it's TTY output is not friendly or human parseable if we will want users to send us logs.
2018-12-29 14:55:35 +03:00
Eugene Bujak
a7e0f66492
Flag parser -- support options without values, move code for help and verbose into table.
2018-12-29 14:55:03 +03:00
Andrey Meshkov
f312575da4
verbose output parameter
2018-12-29 00:49:39 +03:00
Eugene Bujak
03effab345
Start DHCP on launch if it's enabled in config.
2018-12-28 21:01:16 +03:00
Eugene Bujak
e5c1211e17
Small code review update -- use CamelCase
2018-12-06 17:18:16 +03:00
Eugene Bujak
7ddc71006b
stop DNS server properly when interrupted with ctrl+c, SIGTERM, SIGHUP or SIGQUIT
2018-12-05 16:57:21 +03:00
Eugene Bujak
ea1353422f
User rules -- hold them as a slice of strings, which is how dns forwarding server will expect them.
2018-12-05 16:54:56 +03:00
Eugene Bujak
45ae984f3b
Fix incorrect cherry-pick in previous commit.
2018-11-29 14:58:25 +03:00
Eugene Bujak
6257ff123f
Fix gometalinter warnings
2018-11-28 13:38:19 +03:00