Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Documentation page with starting point configs for IIS and Apache #1100

Closed
aligneddev opened this issue May 24, 2018 · 3 comments

Comments

@aligneddev
Copy link

I'd like to have a fast and secure web.config starting point that will past most/all of the linting rules to start off. I could go through all the lint errors and add those in (and learn a lot in the process), but I'd like to have a better starting point the Visual Studio > New Project.

Proposal:
add a sonarwhal command line gen-webconfig option

  • prompt for the type of config
    • IIS/10
    • iisnode

Include all of the best practices that will work on an Azure AppService environment.

Alternative: add a web.config example in the github repository. I've been looking at https://github.com/sonarwhal/sonarwhal.com/blob/master/web.config, but that's for iisnode.

@alrra
Copy link
Contributor

alrra commented May 24, 2018

I could go through all the lint errors and add those in (and learn a lot in the process),

The documentation for every rule that can be fixed by configuring the server does contain examples of server configs (e.g.: for rule-http-compression).

I could go through all

But, I see your point.

Alternative: add a web.config example in the github repository. I've been looking

@aligneddev What do you think about have a documentation page with the full (copy-paste ready) server configs?

@aligneddev
Copy link
Author

A documentation page would be great!

@alrra alrra self-assigned this Jul 26, 2018
@molant molant changed the title Feature Request: Generate a web.config starting point for IIS Feature Request: Documentation page with starting point configs for IIS and Apache Aug 8, 2018
@molant molant self-assigned this Aug 8, 2018
@molant
Copy link
Member

molant commented Aug 8, 2018

There's a PR (#1224) with a generic web.config. @aligneddev feel free to comment on it!

alrra pushed a commit that referenced this issue Aug 9, 2018
alrra added a commit that referenced this issue Aug 10, 2018
alrra added a commit that referenced this issue Aug 13, 2018
alrra added a commit that referenced this issue Aug 13, 2018
alrra added a commit that referenced this issue Aug 13, 2018
@alrra alrra closed this as completed in 830bada Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants