move onion address to nginx header
This commit is contained in:
		@@ -22,7 +22,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		</nav>
 | 
							</nav>
 | 
				
			||||||
		<h2>oily.dad</h2>
 | 
							<h2>oily.dad</h2>
 | 
				
			||||||
		<h5>oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion</h5>
 | 
					 | 
				
			||||||
		</header>
 | 
							</header>
 | 
				
			||||||
		<hr>
 | 
							<hr>
 | 
				
			||||||
		{% with messages = get_flashed_messages() %}
 | 
							{% with messages = get_flashed_messages() %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,6 +22,7 @@ server {
 | 
				
			|||||||
	root /var/www/html;
 | 
						root /var/www/html;
 | 
				
			||||||
	index index.php index.html index.htm;
 | 
						index index.php index.html index.htm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	location / {
 | 
						location / {
 | 
				
			||||||
		proxy_pass http://backend:8000/;
 | 
							proxy_pass http://backend:8000/;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,6 +22,7 @@ server {
 | 
				
			|||||||
	root /var/www/html;
 | 
						root /var/www/html;
 | 
				
			||||||
	index index.php index.html index.htm;
 | 
						index index.php index.html index.htm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	location / {
 | 
						location / {
 | 
				
			||||||
		proxy_pass http://backend:8000/;
 | 
							proxy_pass http://backend:8000/;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user