Skip to content

Commit c755fb7

Browse files
committed
use prod action
1 parent 8db6422 commit c755fb7

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/nginx-sync.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
--tenant "${{ secrets.AZURE_TENANT_ID }}"
2727
2828
- name: Sync NGINX Config to Azure
29-
uses: kuthiala/nginx-for-azure-deploy-action@main
29+
# uses: kuthiala/nginx-for-azure-deploy-action@main
30+
uses: nginxinc/[email protected]
3031
with:
3132
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3233
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}

configs/nginx.conf

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
1+
user nginx;
2+
worker_processes auto;
3+
worker_rlimit_nofile 8192;
4+
pid /run/nginx/nginx.pid;
5+
>
6+
error_log /var/log/nginx/error.log error;
7+
>
8+
http {
9+
access_log off;
10+
server_tokens "";
11+
server {
12+
listen 80 default_server;
13+
server_name localhost;
14+
location / {
15+
# Points to a directory with a basic html index file with
16+
# a "Welcome to NGINX as a Service for Azure!" page
17+
return 200 "hello world";
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)