diff --git a/Nginx-Webserver-Config.md b/Nginx-Webserver-Config.md index 1673246..171dd9f 100644 --- a/Nginx-Webserver-Config.md +++ b/Nginx-Webserver-Config.md @@ -14,8 +14,37 @@ Once I deleted those files, nginx was working instantly. Propose a new step coul If you use Nginx in front of Wekan on CentOS 7, please try: `setsebool -P httpd_can_network_connect 1`. This should allow nginx or any other webserver to connect to a container. Please [**do not disable SELinux**](https://github.com/wekan/wekan/issues/2792#issuecomment-630222315) +## Nginx requires unsafe-eval for WeKan date format -## [Attachment file size](https://github.com/wekan/wekan/issues/2103#issuecomment-455014303) +[Source](https://github.com/wekan/wekan/issues/4220#issuecomment-990243775) + +Thank you for your answers. I figured out that in my nginx config I needed to add allow `unsafe-eval`: + +Old: +``` +add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'"; +``` +Now: +``` +add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'"; +``` +This solves my problem. + +Thanks + +## Attachment file size + +[Source](https://github.com/wekan/wekan/issues/2103#issuecomment-455014303) + +`/etc/nginx.conf`: +``` +http { + ... + client_max_body_size 100M; +} +``` + +## Others [Meteor.js on Ubuntu 14.04 with nginx](https://www.digitalocean.com/community/tutorials/how-to-deploy-a-meteor-js-application-on-ubuntu-14-04-with-nginx)