Compare commits

..

2 commits

Author SHA1 Message Date
8db4d463ad Volver a hacer funcionar API de OpenSea 2022-08-14 09:53:38 +02:00
de8c681440 Makefile: Usar sintaxis de ssh normal 2022-08-14 09:43:34 +02:00
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,6 @@ nft.nulo.in:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
upload: nft.nulo.in
ssh root@nulo.in/993 sv stop nftmashin
ssh -p993 root@nulo.in sv stop nftmashin
scp -r -P993 nft.nulo.in templates assets nftmashin@nulo.in:/home/nftmashin/
ssh root@nulo.in/993 sv start nftmashin
ssh -p993 root@nulo.in sv start nftmashin

View file

@ -68,6 +68,7 @@ func GetAssets() (Assets, error) {
return assets, err
}
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36")
req.Header.Set("x-api-key", "")
res, err := http.DefaultClient.Do(req)
if err != nil {
return assets, err