-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,63 +113,66 @@ Setup is done in a way that uWSGI will serve acme2certifier while NGIX will act | |
|
||
3. create a configuration file 'acme_srv.cfg' in /opt/acme2certifier/acme/ or use the example stored in the example directory | ||
|
||
4. set the correct permmissions to the acme-subdirectory | ||
4. modify the [configuration file](acme_srv.md) according to you needs | ||
|
||
5. set the correct permmissions to the acme-subdirectory | ||
``` | ||
[root@srv ~]# chmod a+x /opt/acme2certifier/acme | ||
``` | ||
|
||
5. set the onwership of the acme subdirectory to the user running nginx | ||
6. set the onwership of the acme subdirectory to the user running nginx | ||
``` | ||
[root@srv ~]# chown -R nginx /opt/acme2certifier/acme | ||
``` | ||
|
||
6. install the missing python modules | ||
7. install the missing python modules | ||
``` | ||
[root@srv ~]# pip install -r requirements.txt | ||
``` | ||
|
||
7. Install uswgi by using pip | ||
8. Install uswgi by using pip | ||
``` | ||
[root@srv ~]# pip install uwsgi | ||
``` | ||
|
||
8. Test acme2certifier by starting the application | ||
9. Test acme2certifier by starting the application | ||
``` | ||
[root@srv ~]# uwsgi --socket 0.0.0.0:8000 --protocol=http -w acme2certifier_wsgi | ||
``` | ||
|
||
9. Check access to the directory ressource to verify that everything works so far | ||
10. Check access to the directory ressource to verify that everything works so far | ||
``` | ||
[root@srv ~]# curl http://127.0.0.1:8000/directory | ||
{"newAccount": "http://127.0.0.1:8000/acme/newaccount", "fa8b347d3849421ebc4b234205418805": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417", "keyChange": "http://127.0.0.1:8000/acme/key-change", "newNonce": "http://127.0.0.1:8000/acme/newnonce", "meta": {"home": "https://github.com/grindsa/acme2certifier", "author": "grindsa <[email protected]>"}, "newOrder": "http://127.0.0.1:8000/acme/neworders", "revokeCert": "http://127.0.0.1:8000/acme/revokecert"}[root@srv ~]# | ||
``` | ||
|
||
10. create an uWSGI config file or use the one stored in excample/nginx directory | ||
11. create an uWSGI config file or use the one stored in excample/nginx directory | ||
``` | ||
[root@srv ~]# cp examples/nginx/acme2certifier.ini /opt/acme2certifier | ||
``` | ||
|
||
11. Create a Systemd Unit File for uWSGI or use the one stored in excample/nginx directory | ||
12. Create a Systemd Unit File for uWSGI or use the one stored in excample/nginx directory | ||
``` | ||
[root@srv ~]# cp examples/nginx/uwsgi.service/etc/systemd/system/ | ||
[root@srv ~]# systemctl enable uwsgi.service | ||
``` | ||
|
||
12. start uWSGI as service | ||
13. start uWSGI as service | ||
``` | ||
[root@srv ~]# systemctl start uwsgi | ||
``` | ||
|
||
13. configure NGINX as reverse proxy or use example stored in example/nginx directory and modify it according to your needs | ||
14. configure NGINX as reverse proxy or use example stored in example/nginx directory and modify it according to your needs | ||
``` | ||
[root@srv ~]# cp example/nginx/nginx_acme.conf /etc/nginx/conf.d/acme.conf | ||
``` | ||
14. restart nginx | ||
|
||
15. restart nginx | ||
``` | ||
[root@srv ~]# systemctl restart nginx | ||
``` | ||
|
||
15. test the server by accessing the directory ressource | ||
17. test the server by accessing the directory ressource | ||
``` | ||
[root@srv ~]# curl http://<your server name>/directory | ||
you should get your ressource overview now | ||
|