authorize attribute for api
parent
4a1831452b
commit
d635313907
|
@ -1,4 +1,5 @@
|
|||
using MediatR;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NetworkResurrector.Api.Application.Queries;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -6,6 +7,7 @@ using System.Threading.Tasks;
|
|||
namespace NetworkResurrector.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[Route("network")]
|
||||
public class NetworkController : ControllerBase
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ COPY --from=publish /app/publish .
|
|||
|
||||
ENV urls="http://*:80"
|
||||
ENV ConnectionStrings__DatabaseConnection="***REMOVED***"
|
||||
ENV IdentityServer__BaseAddress="https://toodle.ddns.net/identity-server-api/"
|
||||
ENV IdentityServer__BaseAddress="http://***REMOVED***/"
|
||||
|
||||
#Workaround to lower the TLS level in container for old sql server version
|
||||
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf
|
||||
|
|
Loading…
Reference in New Issue