1
0
mirror of https://github.com/coturn/coturn.git synced 2025-12-25 01:41:00 +01:00

79 Commits

Author SHA1 Message Date
Shane
2944775261
Add define to disable OAuth support (#1713)
Redoing https://github.com/coturn/coturn/pull/1664 as requested. This
adds an optional OAUTH_DISABLED define to allow for disabling OAuth
support.
2025-07-02 11:36:50 +02:00
Leonid Gorbachev
beaed33e90
change for incorrect handling of TURN_NO_TLS environment variable (#1663)
In version 4.5.1.3, there was a handling of TURN_NO_TLS environment
variable and the TURN_xxx environment variables can be set in the
following manner:
      **export TURN_NO_TLS=1**
      export TURN_NO_PQ=1
      export TURN_NO_MYSQL=1
      export TURN_NO_MONGO=1
      export TURN_NO_SQLITE=1
      ./configure


In versions 4.5.2 and later, handling of TURN_NO_TLS was removed, and
with this TURN_NO_TLS is set as-is OSCFLAGS:

831b7245aa/configure (L1021)
And now, to set no-tls properly during compile time, we have to do the
following:
      **export TURN_NO_TLS=-DTURN_NO_TLS**
      export TURN_NO_PQ=1
      export TURN_NO_GCM=1

Otherwise, if leave previous approach, it obviously causes an error
during compile time:
```
    cc: error: 1: linker input file not found: No such file or directory
```

With this PR i would like to restore consistency of environment
variables that used for ./configure
2025-03-30 13:16:28 -07:00
Alex Gustafsson
d63704c72d
Implement custom prometheus http handler (#1591)
Implement a custom prometheus http handler in order to:

1. Support listening on a specified address as opposed to any
2. Remove the requirement on the unmaintained promhttp library

This feature comes with one limitation: if an IPv4 address is used, the
server will not listen on the IPv6-mapped address, even if IPv6 is
available. That is, dual-stacking does not work.

Solves: #1475

---------

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-12-10 10:28:43 -08:00
Sergey Radionov
7711c43525
configure: data files shouldn't be executable (#1542)
for example it creates `/etc/turnserver.conf.default` as executable,
which is strange...
2024-08-05 22:04:27 -07:00
Michael Jones
8f2a482ad9
Add github action that runs tests with compiler sanitizers (#1370) 2024-01-15 18:26:31 -08:00
Kang Lin
294f897ccd
CMake: find prometheus(fix #1304) (#1315)
fix #1304
2023-11-22 20:34:53 -08:00
Pavel Punsky
85c11b69e3
Move and split documentation files (#1096)
This is not a long term documentation works - this is a temp proposal to
modernize existing documentation

- Create docs folder
- Move existing documentation files into docs
- Split one massive INSTALL files into smaller files (no text editing
was done except small markdown header formatting)
- Rename files to be markdowns for nicer rendering
- Bad md rendering is expected in many places
2022-12-22 11:13:24 -08:00
Pavel Punsky
1467a5bd14
Better detect SCTP protocol (#1016)
turnserver includes support for SCTP and tries to initialize listener
sockets with SCTP protocol. On machines where SCTP definitions exist but
the protocol is not provided - socket() returns error which shows up as
`socket: protocol not supported`

This change improves a few related pieces of code:
- Log error instead of perror
- config script detect sctp.h and if not present - defines TURN_NO_SCTP
- CMake fully disables SCTP (for now - requires custom module to detect
SCTP presence)

Fixes #492
2022-10-12 10:52:31 +02:00
Robert Scheck
50f33bf04e
Preserve file timestamps when using install(1) (#983)
- Preserve file timestamps when using `install`
- Use permissions `0644` rather than default `0755` for installing man
pages

The alternative calls of `cp` are using `cp -p` as well (if `install` is
unavailable).
2022-09-16 09:44:00 +02:00
Gustavo Garcia
c95e438633
Merge pull request #869 from micmac1/no-intl
configure: don't link in libintl
2022-08-01 10:25:12 +02:00
Sebastian Kemper
10c91c65a3 configure: support MariaDB Connector/C
If libmariadb is installed from the MariaDB server package, the pc file
is "mariadb.pc". But when MariaDB Connector/C is used, it's actually
"libmariadb.pc". This commit adds the latter to the detection.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-26 16:14:30 +01:00
Sebastian Kemper
2132a1a8ee configure: don't link in libintl
libintl isn't used, so there is no need to link coturn to it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-26 15:47:44 +01:00
tyranron
7a82602b61
Upgrade debian to 'bullseye' version in Docker image 2021-08-29 14:39:51 +03:00
tyranron
a775ca47e2
Link libatomic explicitly in debian Docker image 2021-04-22 13:53:18 +03:00
Mészáros Mihály
97c93725af
Merge pull request #704 from hills/configure-exit
Packaging scripts can miss out on these errors
2021-03-23 09:41:28 +01:00
Jonathan GIBERT
6994972726 Support older mysql client version in configure 2021-03-04 17:54:51 +01:00
Mark Hills
a7dcdc6da9 Packaging scripts can miss out on these errors
This script looks like it's designed to use a portable subset of
sh; I'm not aware of any portability problems of this patch.
2021-01-25 15:08:55 +00:00
Mészáros Mihály
d951cd34bf Add back again ssl and crypto testlib 2021-01-08 08:41:04 +00:00
Mészáros Mihály
bde7e2ece9 Fix configure test mysql 2021-01-08 08:16:30 +00:00
Mészáros Mihály
80fb20a125 Fix: systemd mistake in configure 2021-01-08 07:07:21 +00:00
Mészáros Mihály
ef7916842d Add systemd notification support 2021-01-07 17:51:34 +00:00
Mészáros Mihály
ae0b41153c Fix PR288 2021-01-07 14:26:17 +00:00
Mészáros Mihály
05ecf28a95 Merge branch 'master' into PR288 2021-01-07 12:00:22 +00:00
Jens Elkner
619305a43c configure: disable debug 2020-12-31 19:08:57 +01:00
Jens Elkner
36481cc396 configure fix 2020-12-31 19:06:46 +01:00
Jens Elkner
8c99505614 fix acme wrt. security, redundancy, consistency 2020-12-31 16:39:00 +01:00
Hristo Venev
40b39e2392 configure: use pkg-config for openssl 2020-10-26 19:47:43 +02:00
Hristo Venev
63e5f078b4 configure: use pkg-config for mongodb 2020-10-26 19:47:43 +02:00
Hristo Venev
29b5e23f05 configure: use pkg-config for mysql 2020-10-26 19:47:43 +02:00
Hristo Venev
92d7a114a7 configure: use pkg-config for libevent 2020-10-26 19:47:43 +02:00
Hristo Venev
651ea27ebf configure: use pkg-config for postgresql 2020-10-26 19:45:55 +02:00
Hristo Venev
e7940bb849 configure: use pkg-config for hiredis 2020-10-26 19:45:55 +02:00
Hristo Venev
af437e6751 configure: use pkg-config for sqlite3 2020-10-26 19:45:55 +02:00
Hristo Venev
a6ee955e44 configure: add pkg-config helpers 2020-10-26 19:45:55 +02:00
Hristo Venev
30acc0a563 configure: remove unnecessary include/library paths
Everything should be provided by pkg-config now.
2020-10-26 19:05:21 +02:00
Hristo Venev
28352b12ac configure: simplify pthreads detection
Also make `pthread_testlib` return success on success and failure on failure.
2020-10-26 19:05:21 +02:00
Hristo Venev
9980f84601 configure: Fix CC detection when 'unknown' is on PATH
We can't be sure that a program called 'unknown' will never exist.
2020-10-26 19:05:21 +02:00
Mészáros Mihály
c9cd99e4f5 Disable prometheus by default 2020-08-03 10:25:56 +02:00
Mészáros Mihály
dca83e9b9f Make error more visible and separated with newlines 2020-07-08 10:03:04 +02:00
Mészáros Mihály
2acb952670 tidy after PR #517 2020-07-08 09:47:24 +02:00
Miquel Ortega
fb3bd0d353 Added checks to make prometheus optional 2020-04-02 17:28:21 +02:00
Miquel Ortega
b9802690d1 First code to implement prometheus metrics 2020-04-02 00:49:28 +02:00
islamoglus
0163b1f6a3 re-design, adding real compile test for private libraries 2019-05-21 11:07:56 +03:00
islamoglus
74d8b6716c Modifying configure file for enable to compile with private libraries 2019-04-22 15:23:00 +03:00
Oleg Moskalenko
092849aa0b hiredis and mongo config fix 2015-11-17 01:05:05 -08:00
Sergey Safarov
5bedc685a3 Fixec mongo-c-driver include patch 2015-11-15 21:29:21 +03:00
Oleg Moskalenko
9a82dda964 non-interactive shell fix 2015-11-01 23:21:33 -08:00
mom040267
ade9f32943 working on sctp support 2015-05-28 05:01:43 +00:00
mom040267
6fccc65fc7 working on sctp 2015-03-18 06:20:21 +00:00
mom040267
7a9c2fa50a working on sctp 2015-03-18 05:52:30 +00:00