You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/05/18 12:14:54 UTC
[GitHub] [couchdb-pkg] Napsty opened a new issue, #96: enable_cors is written to httpd section instead of chttpd
Napsty opened a new issue, #96:
URL: https://github.com/apache/couchdb-pkg/issues/96
## Current Behavior
The CouchDB package creates the following file after the installation: `/opt/couchdb/etc/local.d/10-admins.ini`. This also configures to enable CORS by default using `enable_cors = true`. However the package writes this into the `[httpd]` section, whereas the documentation (https://docs.couchdb.org/en/latest/config/http.html#config-cors) states:
> Changed in version 3.2: moved from [httpd] to [chttpd] section
```
root@couchdb:~# cat /opt/couchdb/etc/local.d/10-admins.ini
# Package-introduced administrative user
[admins]
redacted
[chttpd_auth]
secret = redacted
[couchdb]
uuid = redacted
[httpd]
enable_cors = true
[cors]
origins = *
credentials = true
headers = accept, authorization, content-type, origin, referer
methods = GET, PUT, POST, HEAD, DELETE
```
## Expected Behavior
[httpd] section should be called [chttpd] in /opt/couchdb/etc/local.d/10-admins.ini.
## Possible Solution
Rename [httpd] section to [chttpd] in /opt/couchdb/etc/local.d/10-admins.ini.
## Your Environment
* Version used: 3.2.2-1~bullseye
* Browser Name and version: N/A
* Operating System and version (desktop or mobile): Debian Bullseye
* Link to your project: N/A
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-pkg] big-r81 commented on issue #96: enable_cors is written to httpd section instead of chttpd
Posted by GitBox <gi...@apache.org>.
big-r81 commented on issue #96:
URL: https://github.com/apache/couchdb-pkg/issues/96#issuecomment-1176046923
Hi, did you use Fauxton to configure CORS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-pkg] Napsty commented on issue #96: enable_cors is written to httpd section instead of chttpd
Posted by GitBox <gi...@apache.org>.
Napsty commented on issue #96:
URL: https://github.com/apache/couchdb-pkg/issues/96#issuecomment-1129954503
Yes, this was a brand new install.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-pkg] Napsty commented on issue #96: enable_cors is written to httpd section instead of chttpd
Posted by GitBox <gi...@apache.org>.
Napsty commented on issue #96:
URL: https://github.com/apache/couchdb-pkg/issues/96#issuecomment-1176132616
> Hi, did you use Fauxton to configure CORS.
Yes, this is very possible. I just installed a brand-new CouchDB on a new/empty Bullseye and after the installation of the `couchdb` package, the file `/opt/couchdb/etc/local.d/10-admins.ini` only contains the admin user.
So looks like the cors config in the wrong section was created by Fauxton. Package is therefore clean. Sorry for the noise.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-pkg] big-r81 commented on issue #96: enable_cors is written to httpd section instead of chttpd
Posted by GitBox <gi...@apache.org>.
big-r81 commented on issue #96:
URL: https://github.com/apache/couchdb-pkg/issues/96#issuecomment-1129940095
Hi Claudio,
was this a complete new install of CouchDB? So no configuration files were present before install?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-pkg] Napsty closed issue #96: enable_cors is written to httpd section instead of chttpd
Posted by GitBox <gi...@apache.org>.
Napsty closed issue #96: enable_cors is written to httpd section instead of chttpd
URL: https://github.com/apache/couchdb-pkg/issues/96
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-pkg] big-r81 commented on issue #96: enable_cors is written to httpd section instead of chttpd
Posted by GitBox <gi...@apache.org>.
big-r81 commented on issue #96:
URL: https://github.com/apache/couchdb-pkg/issues/96#issuecomment-1176137347
Okay, thanks, will open a PR in Fauxton to fix this!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org