Skip to content

Commit

Permalink
preliminarily remove all conf files in favor of inline config
Browse files Browse the repository at this point in the history
  • Loading branch information
HalosGhost committed Oct 17, 2018
1 parent b1203fa commit 0727f59
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ res: dist
@cp -a --no-preserve=ownership pages dist/
@cp -a --no-preserve=ownership media dist/
@cp -a --no-preserve=ownership assets dist/
@cp -a --no-preserve=ownership conf/* dist/

minify: res
@(cd dist; \
Expand Down Expand Up @@ -74,7 +73,6 @@ deploy:

uninstall:
@rm -rf -- $(MAINDIR)/{assets,media,pages,.well-known}
@rm -f -- $(MAINDIR)/{$(PROGNM),hgredirector}{,.conf}
@rm -f -- $(SVCDIR)/{$(PROGNM),hgredirector}.service
@rm -f -- $(BINDIR)/website

Expand Down
1 change: 0 additions & 1 deletion conf/hgredirector.conf

This file was deleted.

1 change: 0 additions & 1 deletion conf/hgweb.conf

This file was deleted.

6 changes: 5 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ signed
main (void) {

struct lwan l;
lwan_init(&l);
struct lwan_config conf = *lwan_get_default_config();
conf.listener = "0.0.0.0:8443";
lwan_init_with_config(&l, &conf);

//lwan_straitjacket_enforce(&jacket);

signed errsv = EXIT_SUCCESS;

Expand Down
6 changes: 5 additions & 1 deletion src/redirector.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ signed
main (void) {

struct lwan l;
lwan_init(&l);
struct lwan_config conf = *lwan_get_default_config();
conf.listener = "0.0.0.0:8080";
lwan_init_with_config(&l, &conf);

//lwan_straitjacket_enforce(&jacket);

#define ACMEDIR "/.well-known/acme-challenge"

Expand Down

1 comment on commit 0727f59

@HalosGhost
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cf. lpereira/lwan#249 for fixing the warning on startup

Please sign in to comment.