mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	- Change Talk (HPB) network_mode from host → bridge and drop TURN relay range mapping - Remove obsolete nginx restart handler; rely on 'docker compose up' notify - Fix spreed task condition to use HPB standalone flag - docker-compose.yml.j2: parameterize service names, use NEXTCLOUD_*_SERVICE vars, align host-gateway condition with HPB, tidy ports/expose/network blocks - env.j2/nginx configs: rename TALK_* → HPB_* variables and locations; use templated NEXTCLOUD_SERVICE for php upstream - vars: introduce entity_name; centralize *SERVICE keys; rename all Talk vars to HPB; adjust whiteboard keys; compute URLs/JSON configs accordingly - spreed plugin vars: point to HPB signaling/STUN/TURN and internal secret Ref: https://chatgpt.com/share/68db9f41-16ec-800f-9cdf-7530862f89aa
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| server
 | |
| {
 | |
|   server_name {{ domain }};
 | |
| 
 | |
|   {% include 'roles/sys-svc-letsencrypt/templates/ssl_header.j2' %}
 | |
| 
 | |
|   {% include 'roles/sys-front-inj-all/templates/server.conf.j2'%}
 | |
| 
 | |
|   # Remove X-Powered-By, which is an information leak
 | |
|   fastcgi_hide_header X-Powered-By;
 | |
| 
 | |
|   # Set X-Robots-Tag to noindex, nofollow on all responses
 | |
|   add_header X-Robots-Tag "noindex, nofollow";
 | |
| 
 | |
|   # set max upload size
 | |
|   client_max_body_size 10G;
 | |
|   client_body_buffer_size 400M;
 | |
|   fastcgi_buffers 64 4K;
 | |
| 
 | |
|   {% if NEXTCLOUD_HPB_SIGNALING_ENABLED | bool %}
 | |
|     {% set location_ws = '^~ ' ~ NEXTCLOUD_HPB_SIGNALING_LOCATION %}
 | |
|     {% set ws_port     = NEXTCLOUD_PORT %}
 | |
|     {% include 'roles/sys-svc-proxy/templates/location/ws.conf.j2' %}
 | |
|   {% endif %}
 | |
| 
 | |
|   {% include 'roles/sys-svc-proxy/templates/location/html.conf.j2' %}
 | |
| 
 | |
|   location ^~ /.well-known {
 | |
|     rewrite ^/\.well-known/host-meta\.json  /public.php?service=host-meta-json  last;
 | |
|     rewrite ^/\.well-known/host-meta        /public.php?service=host-meta       last;
 | |
|     rewrite ^/\.well-known/webfinger        /public.php?service=webfinger       last;
 | |
|     rewrite ^/\.well-known/nodeinfo         /public.php?service=nodeinfo        last;
 | |
| 
 | |
|     location = /.well-known/carddav     { return 301 /remote.php/dav/; }
 | |
|     location = /.well-known/caldav      { return 301 /remote.php/dav/; }
 | |
|     location = /.well-known/webfinger    { return 301 /index.php/.well-known/webfinger; }
 | |
|     location = /.well-known/nodeinfo     { return 301 /index.php/.well-known/nodeinfo; }
 | |
| 
 | |
|     try_files $uri $uri/ =404;
 | |
|   }
 | |
| }
 |