2.0/Modules/m httpd
From AnopeWiki
Language | |
---|---|
English |
|
Description
Allows services to serve web pages. By itself, this module does nothing useful.
- name=
- Name of module. Do not change, other modules look for this name.
- httpd {...}
-
- name=
- Name of this service Do not alter this name
- ip=
- IP address of your server to listen for requests on.
- port=
- Port to listen on.
- timeout=
- time to wait before assuming the connection failed, or is done.
- ssl=
- Use secure socket layer Disabled by default
- extforward_ip=
- Used for reverse proxy. Leave disabled unless you have a specific need for this.
- extforward_header=
- The revere proxy header to look for.
Default Configuration
/* * m_httpd * * Allows services to serve web pages. By itself, this module does nothing useful. * * Note that using this will allow users to get the IP of your services. * To prevent this we recommend using a reverse proxy or a tunnel. */ #module { name = "m_httpd" httpd { /* Name of this service. */ name = "httpd/main" /* IP to listen on. */ ip = "0.0.0.0" /* Port to listen on. */ port = 8080 /* Time before connections to this server are timed out. */ timeout = 30 /* Listen using SSL. Requires an SSL module. */ #ssl = yes /* If you are using a reverse proxy that sends one of the * extforward_headers set below, set this to its IP. * This allows services to obtain the real IP of users by * reading the forwarded-for HTTP header. */ #extforward_ip = "192.168.0.255" /* The header to look for. These probably work as is. */ extforward_header = "X-Forwarded-For Forwarded-For" } }