Migration to ASP.NET Core in .NET 6
- WebApplication and WebApplicationBuilder
- Differences in the hosting model
- Building libraries for ASP.NET Core
- FAQ
- Cheatsheet
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
# Optimized my.cnf configuration for MySQL/MariaSQL | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated January 2020 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
global: | |
scrape_interval: 5s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 5s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
scrape_configs: | |
- job_name: 'prometheus' | |
static_configs: | |
- targets: ['prometheus:9090'] | |
- job_name: 'kong' | |
static_configs: |
version: "3.7" | |
####################################### | |
# Network: local-docker-net | |
####################################### | |
networks: | |
local-docker-net: | |
driver: bridge | |
services: |
{"lastUpload":"2019-09-23T10:30:07.358Z","extensionVersion":"v3.4.2"} |
@page "/counter" | |
<h1>Counter</h1> | |
<p>Current count: @currentCount</p> | |
<button class="btn btn-primary" onclick="@IncrementCount">Click me</button> | |
@code { | |
private int currentCount = 0; |