-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL & Proxy configurations #1092
Comments
Surprised this isn't already in the docs considering how HTTPS is now enforced via Chrome. Not having the wiki be able to use a cert out of the box without having to do this config seems like an oversight. Further the docker image has no setting for SSL certs or keys. So we were unable to use Google Auth in our Docker WikiJS which spooled up nicely, and forced us to create an EC2 instance and actually manually install and configure in the above approach so we can maintain HTTPS and our google auth workflow which requires verified HTTPS. |
Glad this helped. I have further built onto my initial nginx ssl config to add HSTS to it. HSTS configuration example below:
|
@asnyder You don't need a reverse proxy to support SSL. Wiki.js supports it natively (check the sample config.yml file). Also, you can easily mount a custom config file and other certs you might need to a docker container. |
Those are the steps I had to take for a CentOS 7 VM install for the v1 of the wiki. It may be that v2 introduced native ssl support but we were waiting for it to be considered stable before upgrading. We are planning to do so in the coming weeks. |
@NGPixel Thank you for all the hard work you have done on this repository. I am using version 1 and this new revision looks awesome. The docker container is a nice and easy install, but SSL has been a problem for me as well. I would greatly appreciate more information/documentation on how to mount a persistent custom config file and other certs into this particular docker container for use. Thank you. |
Since this time, I wrote how to integrate the WikiJS2 docker with SSL here on my personal website using a nginx reverse proxy and a docker letsencrypt nginx proxy companion. Feedback would be appreciated. @NGPixel please feel free to share or use if you think this is useful. There is also a much more detailed article on SSDNodes, here |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am relatively new to GitHub and even newer to Wiki.js & struggled for several hours to properly configure port 80 and 443 proxying to get the wiki my colleague built for our company to automatically work with port 80 & 443 and automatically redirect to port 443 and have it work properly with the wiki node proxy.
I would like to suggest a quick addition of a full proper nginx config (example below) and the config.yml changes to tie the wiki node to the nginx over SSL. Oure wiki node was configured for port 8080. Configuring the node for port 80 or 443 will cause a service failure on the configured port.
I ran
node wiki configure 8080
Changed the Nginx config with the following parameters:
changed the host in config.yml from http:// to https:// and made sure to still set the port to 8080
The text was updated successfully, but these errors were encountered: