Body: <p>I need to get a list of endpoints, that are currently available on nginx plus. Live or list view before running nginx. However I couldn't find any solution.
  Is it even possible and if so, with some tool, that can be implemented in k8s, helm.. so its automated?</p>
  <p>The endpoint would be of course admin access only.</p>
  <p>Example:</p>
  <pre><code>location = /nginx {
  
    limit_except OPTIONS GET {
      deny all;
    }
  }
  </code></pre>
  <p><a href="https://i.sstatic.net/ss93r.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ss93r.png" alt="enter image description here" /></a></p>
  
Comments: CC BY-SA 4.0
Comments: 2023-06-06T09:04:25.247Z
Comments: [This](https://demo.nginx.com/swagger-ui/nginx_api.yaml) looks like the swagger configuration you are looking for.
Comments: ponsfrilus
Comments: CC BY-SA 4.0
Comments: 2023-06-07T10:21:09.383Z
Comments: @ponsfrilus Well not precisely. This is openApi for REST Api already built in nginx. I'm looking for generating openApi from my own nginx.conf file.
Comments: JaeVi
Tags: <kubernetes><nginx>
Title: How to generate swagger documentation from nginx conf file?
UserDisplayName: JaeVi
ThreadText: # How to generate swagger documentation from nginx conf file?
  
  (Asked by: username_0 on 2023-05-15)
  
  I need to get a list of endpoints, that are currently available on nginx plus. Live or list view before running nginx. However I couldn't find any solution.
  Is it even possible and if so, with some tool, that can be implemented in k8s, helm.. so its automated?
  
  The endpoint would be of course admin access only.
  
  Example:
  
  ```
  location = /nginx {
  
    limit_except OPTIONS GET {
      deny all;
    }
  }
  
  ```
  
  [![enter image description here](https://i.sstatic.net/ss93r.png)](https://i.sstatic.net/ss93r.png)
  
  **Tags:** kubernetes, nginx
  
  > **Comments:**
  > **username_1**: [This](https://demo.nginx.com/swagger-ui/nginx_api.yaml) looks like the swagger configuration you are looking for.  
  > **username_0**: @username_1 Well not precisely. This is openApi for REST Api already built in nginx. I'm looking for generating openApi from my own nginx.conf file.  
  
  ---
  
  ## 0 answers
  
  