/config.default.h (1701bba0dec03fc5dd39e90846cfce49958176c6) (1659 bytes) (mode 100644) (type blob)

#ifndef CONFIG_H
#define CONFIG_H

/*
 * On aarch64 it depends on the kernel configuration. Can be discovered at
 * runtime though but what a mess
 */
#define ULINUX_PAGE_SHIFT 12 

/* IPV4: without this, the code paths do default to IPv6 */
#define CONFIG_IPV4 1

#ifndef CONFIG_IPV4
	/* any not defined byte of the IPv6 address will default to 0 */
	/* IN6ADDR_ANY is all 0 */
	/* #define CONFIG_LISTENING_IPV6_BYTE_0 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_1 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_2 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_3 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_4 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_5 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_6 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_7 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_8 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_9 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_A 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_B 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_C 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_D 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_E 0x00
	#define CONFIG_LISTENING_IPV6_BYTE_F 0x00 */
#else /* IPv4 */
	/* if not defined, LISTENING_IPV4 will default to INADDR_ANY */
	/* #define CONFIG_LISTENING_IPV4 0xaabbccdd */
#endif

/*
 * 16 bits value for the port (below 1024, must be root, that you must be for
 * chroot anyway)
 */
#define CONFIG_LISTENING_PORT 80

/* the chroot patch used upon start */
#define CONFIG_CHROOT_PATH "/var/www"

/* time out for a socket read/write, in seconds. 4 secs is huge */
#define CONFIG_CNX_WAIT_TIMEOUT 4

/* default file */
#define CONFIG_DEFAULT_FILE (u8*)"/index.html"
#define CONFIG_DEFAULT_FILE_MIME (u8*)"/index.html.mime"

#endif


Mode Type Size Ref File
100644 blob 246 bbf313b25987d0d61b1cea33a8e6188501e221ac .gitignore
100644 blob 34520 dbbe3558157f5861bff35dcb37b328b679b0ccfd LICENSE
100644 blob 711 7b6f3427768af8d274abb84700dfc15a92c141f6 README
100644 blob 160 740a1744453fc75aebe4c3e1dacd117141dc0040 all.S
100644 blob 375 bf0a2131dfb6d9ae3646055f1e7035c7c6d60566 all.c
100644 blob 1659 1701bba0dec03fc5dd39e90846cfce49958176c6 config.default.h
100644 blob 1013 115022668b11bc675aac6c8e4d98592da7af4440 exit_codes.h
100644 blob 22354 41ea7a150b07f05277b2322b58067b87b921af53 lnanohttp.c
100755 blob 1193 ecd91729d1b15f7cae1080337b642133dec95aa6 make_gcc_aarch64
040000 tree - 7446ca8ef43378965dd632fa0945ece4c1239ef0 ulinux
100644 blob 3911 61d33c0f458518c884db1bfbc9542f8b5824a005 ulinux_namespace.h
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/lnanohttp

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/lnanohttp

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/lnanohttp

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main