ngx_stream_map_module missing/not enabled
I have jitsi running on Ubuntu 20.04.1 LTS.
I tried to improve the TURN server setup for portsharing with nginx:
https:/
The main part of the nginx configuration is using a map inside the stream context:
stream {
map $ssl_preread_
}
...
}
This always dies with
[emerg] 33685#33685: could not build map_hash, you should increase map_hash_
According to
http://
for setting a map inside the stream context this module is required.
I did not check the build prcedure but I think this could be solved by enabling this module during build.
Is this possible, even for 20.04 LTS?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu nginx Edit question
- Assignee:
- Thomas Ward Edit question
- Solved by:
- Thomas Ward
- Solved:
- 2021-01-26
- Last query:
- 2021-01-26
- Last reply:
- 2021-01-26
|
#1 |
This is not the lack of a module. The system tells you to increase your map_hash_
The stream map module is **not** an optional module, in this case. As long as you are using nginx-core, nginx-full, or nginx-extras, you should have the module.
Try setting `map_hash_
If the configuration option wasn't available you'd have "Invalid directive" as an error, not the error you're getting. Start by adjusting your config as the system suggests (my guess is you don't have enough size in your hash buckets).
The setting must be greater than 32 like 64 or 128. Setting the map_hash_
Thanks Thomas Ward, that solved my question.