mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +03:00 
			
		
		
		
	add example nginx config file
This commit is contained in:
		
							parent
							
								
									210f6b51df
								
							
						
					
					
						commit
						661ac8c6f4
					
				
					 2 changed files with 37 additions and 0 deletions
				
			
		
							
								
								
									
										10
									
								
								contrib/nginx/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contrib/nginx/README.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
# nginx configuration
 | 
			
		||||
 | 
			
		||||
## Insert wasm type into nginx mime.types file so they load correctly.
 | 
			
		||||
 | 
			
		||||
`/etc/nginx/mime.types`:
 | 
			
		||||
```
 | 
			
		||||
..
 | 
			
		||||
    application/wasm                      wasm;
 | 
			
		||||
..
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										27
									
								
								contrib/nginx/cinny.domain.tld.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								contrib/nginx/cinny.domain.tld.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,27 @@
 | 
			
		|||
server {
 | 
			
		||||
	listen 80;
 | 
			
		||||
	listen [::]:80;
 | 
			
		||||
	server_name cinny.domain.tld;
 | 
			
		||||
 | 
			
		||||
	location / {
 | 
			
		||||
		return 301 https://$host$request_uri;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	location /.well-known/acme-challenge/ {
 | 
			
		||||
		alias /var/lib/letsencrypt/.well-known/acme-challenge/;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
	listen 443 ssl http2;
 | 
			
		||||
	listen [::]:443 ssl;
 | 
			
		||||
	server_name cinny.domain.tld;
 | 
			
		||||
 | 
			
		||||
	location / {
 | 
			
		||||
		root /opt/cinny/dist/;
 | 
			
		||||
		index index.html;
 | 
			
		||||
	}
 | 
			
		||||
	location ~* ^\/(login|register) {
 | 
			
		||||
		try_files $uri $uri/ /index.html;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue