28 lines
971 B
Plaintext
28 lines
971 B
Plaintext
# .npmrc Örnek Dosyası
|
||
# Bu dosyayı diğer projelerinize kopyalayın ve .npmrc olarak kaydedin
|
||
|
||
# @alper scope'u için Gitea registry'yi kullan
|
||
@alper:registry=https://gitea.yourdomain.com/api/packages/your-username/npm/
|
||
|
||
# Authentication token (environment variable kullanımı - ÖNERİLEN)
|
||
//gitea.yourdomain.com/api/packages/your-username/npm/:_authToken=${GITEA_TOKEN}
|
||
|
||
# Alternatif: Doğrudan token (GÜVENLİ DEĞİL - sadece local geliştirme için)
|
||
# //gitea.yourdomain.com/api/packages/your-username/npm/:_authToken=your-gitea-access-token-here
|
||
|
||
# Environment variable nasıl ayarlanır:
|
||
#
|
||
# Linux/Mac:
|
||
# export GITEA_TOKEN=your-token-here
|
||
# # veya ~/.bashrc veya ~/.zshrc dosyasına ekleyin
|
||
#
|
||
# Windows (PowerShell):
|
||
# $env:GITEA_TOKEN="your-token-here"
|
||
# # veya sistem environment variables'a ekleyin
|
||
#
|
||
# .env dosyası (projede):
|
||
# GITEA_TOKEN=your-token-here
|
||
|
||
# Not: Bu dosyayı .gitignore'a ekleyin!
|
||
# Asla token'ınızı git'e commit etmeyin.
|