tools/stx/toCOPY/aptly/nginx.conf.template
ZhangXiao c6784522a4 stx tool: Create initial aptly container Dockerfile
Create the initial Dockerfile of aptly used to manage Debian repository.

Story: 2008846
Task: 43026

Signed-off-by: ZhangXiao <xiao.zhang@windriver.com>
Change-Id: I4a2fe2d7922c9f535275f7c56c06a062de446ca4
2021-08-19 11:42:26 +08:00

17 lines
291 B
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name $HOSTNAME;
if ( $https = "on" ) {
return 301 http://$host$request_uri;
}
root /var/aptly/public;
location / {
autoindex on;
try_files $uri $uri/ =404;
}
}