mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 01:19:11 +00:00 
			
		
		
		
	doc: Cleaned up nginx configration bits
This commit is contained in:
		
							
								
								
									
										16
									
								
								README.rst
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.rst
									
									
									
									
									
								
							| @@ -184,7 +184,7 @@ Also enable the application: | |||||||
|     ln -s ../apps-available/certidude.ini /etc/uwsgi/apps-enabled/certidude.ini |     ln -s ../apps-available/certidude.ini /etc/uwsgi/apps-enabled/certidude.ini | ||||||
|  |  | ||||||
| We support `nginx-push-stream-module <https://github.com/wandenberg/nginx-push-stream-module>`_, | We support `nginx-push-stream-module <https://github.com/wandenberg/nginx-push-stream-module>`_, | ||||||
| configure the site in /etc/nginx/sites-available.d/certidude: | configure the site in /etc/nginx/sites-available/certidude: | ||||||
|  |  | ||||||
| .. code:: | .. code:: | ||||||
|  |  | ||||||
| @@ -196,7 +196,14 @@ configure the site in /etc/nginx/sites-available.d/certidude: | |||||||
|         server_name localhost; |         server_name localhost; | ||||||
|         listen 80 default_server; |         listen 80 default_server; | ||||||
|         listen [::]:80 default_server ipv6only=on; |         listen [::]:80 default_server ipv6only=on; | ||||||
|  |         root /usr/local/lib/python3.4/dist-packages/certidude/static; | ||||||
|  |  | ||||||
|  |         location /api/ { | ||||||
|  |             include uwsgi_params; | ||||||
|  |             uwsgi_pass certidude_api; | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         # Add following three if you wish to enable push server on this machine | ||||||
|         location /pub { |         location /pub { | ||||||
|             allow 127.0.0.1; # Allow publishing only from CA machine |             allow 127.0.0.1; # Allow publishing only from CA machine | ||||||
|             push_stream_publisher admin; |             push_stream_publisher admin; | ||||||
| @@ -212,18 +219,13 @@ configure the site in /etc/nginx/sites-available.d/certidude: | |||||||
|             push_stream_channels_path $1; |             push_stream_channels_path $1; | ||||||
|             push_stream_subscriber eventsource; |             push_stream_subscriber eventsource; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         location / { |  | ||||||
|             include uwsgi_params; |  | ||||||
|             uwsgi_pass certidude_api; |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
| Enable the site: | Enable the site: | ||||||
|  |  | ||||||
| .. code:: bash | .. code:: bash | ||||||
|  |  | ||||||
|     ln -s ../sites-available.d/certidude.ini /etc/nginx/sites-enabled.d/certidude |     ln -s ../sites-available/certidude /etc/nginx/sites-enabled/certidude | ||||||
|  |  | ||||||
| Also adjust ``/etc/nginx/nginx.conf``: | Also adjust ``/etc/nginx/nginx.conf``: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user